From mboxrd@z Thu Jan 1 00:00:00 1970 To: 9fans@9fans.net Date: Fri, 4 Sep 2009 09:16:09 +0000 From: comeau@panix.com (Greg Comeau) Message-ID: References: <3e1162e60909031156l54ad6e1jbce390dfbe697718@mail.gmail.com>, Subject: Re: [9fans] "Blocks" in C Topicbox-Message-UUID: 63e56686-ead5-11e9-9d60-3106f5b1d025 In article , erik quanstrom wrote: >> Apple's using it all over the place in Snow Leopard, in all their native >> apps to write cleaner, less manual-lock code. At least, that's the claim >> :-). > >could someone explain this to me? i'm just missing how >naming a block of code could change its locking properties. Unless I'm completely not recalling properly (so I could be completely wrong) it's not the naming or unname per se, but that because the stuff happens at runtime and I seem to recall can also be tagged, then, then that combo allows the underlying machinery can pick up on the tag, or not, to do the locking. Automatically. If I'm not remembering correctly, or, I'm thinking about something totally different, I'm certain somebody will correct any misspeaks I've just made. -- Greg Comeau / 4.3.10.1 with C++0xisms now in beta! Comeau C/C++ ONLINE ==> http://www.comeaucomputing.com/tryitout World Class Compilers: Breathtaking C++, Amazing C99, Fabulous C90. Comeau C/C++ with Dinkumware's Libraries... Have you tried it?