, win32 ( spincount, ).
Visual Studio 2010 Beta2/Win7 x64 Concurrency Runtime (ConcRT), . , ConcRT ( , ). , , boost:: thread ConcRT, .
Intel Threading Building Blocks, . .
Anthony Williams has an implementation of std :: thread for sale on his website, which includes the Atomics library from C ++ 0x, if you really want to create your own spindle blocks.
In general, if you do not perform very fine-grained synchronization, where you guarantee that there will not be much controversy, I would advise you to be smart using spinlocks, they tend to “spin” and as such consume system resources of the processor ...
-Rick
source
share