thread's local storage, where is it ?
-
"... can use thread local storage to keep track of an object's internal data" from a cp article. //now my doubt is CMyObj ob; //my obj is stored inside stack. CMyObj* pOb = new CMyObj(); //my obj is stored inside heap. ---------------- //now how to store in threads local storage ? pls throw some light :)
-
"... can use thread local storage to keep track of an object's internal data" from a cp article. //now my doubt is CMyObj ob; //my obj is stored inside stack. CMyObj* pOb = new CMyObj(); //my obj is stored inside heap. ---------------- //now how to store in threads local storage ? pls throw some light :)
There are few good articles for this topic avail in here (codeproject). They are http://www.codeproject.com/threads/tls.asp[^] http://www.codeproject.com/threads/threaddata.asp[^] http://www.codeproject.com/threads/csharedstruct.asp[^] Sonork 100.41263:Anthony_Yio
-
"... can use thread local storage to keep track of an object's internal data" from a cp article. //now my doubt is CMyObj ob; //my obj is stored inside stack. CMyObj* pOb = new CMyObj(); //my obj is stored inside heap. ---------------- //now how to store in threads local storage ? pls throw some light :)