Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.c > #68763

Re: sht static guard locks

From Gareth Owen <gwowen@gmail.com>
Newsgroups comp.lang.c
Subject Re: sht static guard locks
References <3c9716ac-61bd-4d69-bdcd-3635ea54bf73@googlegroups.com> <mrnuig$8rv$1@dont-email.me> <d49j8iFrgntU12@mid.individual.net>
Date 2015-08-31 18:15 +0100
Message-ID <87k2sbl6qx.fsf@gmail.com> (permalink)

Show all headers | View raw


Ian Collins <ian-news@hotmail.com> writes:

>> If you do not care about performance (as many C++ people do) it doesn't
>> matter. If you are very interested in performance this is a serious problem.
>
> If you take the trouble to look (but that would spoil a good rant,
> wouldn't it?) you would see that static variable initialisation that
> is legal in C (from a constant) is treated the same in C++ as C.  The
> compiler inserts guards where a race condition could occur.

Tell your facts to shut up.  Jacob has no interest in them.

Back to comp.lang.c | Previous | Next — Previous in thread | Find similar | Unroll thread


Thread

sht static guard locks fir <profesor.fir@gmail.com> - 2015-08-27 11:11 -0700
  Re: sht static guard locks jacobnavia <jacob@jacob.remcomp.fr> - 2015-08-27 23:15 +0200
    Re: sht static guard locks Ian Collins <ian-news@hotmail.com> - 2015-08-28 09:51 +1200
      Re: sht static guard locks Les Cargill <lcargill99@comcast.com> - 2015-08-27 18:06 -0500
        Re: sht static guard locks David Brown <david.brown@hesbynett.no> - 2015-08-28 10:14 +0200
          Re: sht static guard locks Les Cargill <lcargill99@comcast.com> - 2015-08-28 21:30 -0500
            Re: sht static guard locks fir <profesor.fir@gmail.com> - 2015-08-29 00:46 -0700
              Re: sht static guard locks fir <profesor.fir@gmail.com> - 2015-08-29 01:39 -0700
                Re: sht static guard locks fir <profesor.fir@gmail.com> - 2015-08-29 03:09 -0700
                Re: sht static guard locks David Brown <david.brown@hesbynett.no> - 2015-08-29 12:43 +0200
              Re: sht static guard locks fir <profesor.fir@gmail.com> - 2015-08-29 03:20 -0700
              Re: sht static guard locks fir <profesor.fir@gmail.com> - 2015-08-29 04:28 -0700
            Re: sht static guard locks David Brown <david.brown@hesbynett.no> - 2015-08-29 12:38 +0200
    Re: sht static guard locks Ian Collins <ian-news@hotmail.com> - 2015-08-28 11:02 +1200
      Re: sht static guard locks Gareth Owen <gwowen@gmail.com> - 2015-08-31 18:15 +0100

csiph-web