In article <[email protected]>, erik quanstrom <[email protected]> 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?
