How does a portable Thread Specific Storage Mechanism's Naming Scheme Generate Thread Relative Uniqu
Posted
by Hassan Syed
on Stack Overflow
See other posts from Stack Overflow
or by Hassan Syed
Published on 2010-04-13T09:29:18Z
Indexed on
2010/04/13
9:33 UTC
Read the original article
Hit count: 346
boost-thread
|multithreading
|thread-specific-storage
|systems-programming
|low-level-api
A portable thread specific storage reference/identity mechanism, of which boost/thread/tss.hpp is an instance, needs a way to generate a unique keys for itself. This key is unique in the scope of a thread, and is subsequently used to retrieve the object it references. This mechanism is used in code written in a thread neutral manner.
Since boost is a portable example of this concept, how specifically does such a mechanism work ?
© Stack Overflow or respective owner