diff options
author | megamage <none@none> | 2009-02-12 17:09:15 -0600 |
---|---|---|
committer | megamage <none@none> | 2009-02-12 17:09:15 -0600 |
commit | 6aee5fcbe7473a3cbac12b7e8482a7b98bef8be3 (patch) | |
tree | 91ec91d5c19eba9c2fe0e84b1c9dc7047a3de80e /dep/src/zthread/win32/TSS.h | |
parent | 2d2f433b4de1c35b22aaf07854fc0ee11fcb350d (diff) | |
parent | f385747164c3fb278c92ef46fbd6c3da6590bbf0 (diff) |
*Merge.
--HG--
branch : trunk
Diffstat (limited to 'dep/src/zthread/win32/TSS.h')
-rw-r--r-- | dep/src/zthread/win32/TSS.h | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/dep/src/zthread/win32/TSS.h b/dep/src/zthread/win32/TSS.h index 2400830f06a..d1307a51e2a 100644 --- a/dep/src/zthread/win32/TSS.h +++ b/dep/src/zthread/win32/TSS.h @@ -33,12 +33,12 @@ namespace ZThread { * @date <2003-07-27T14:18:43-0400> * @version 2.3.0 * - * An abstraction for dealing with WIN32 thread specific storage (tss). + * An abstraction for dealing with WIN32 thread specific storage (tss). * Provides get/set and creation/destruction. */ template <typename T> class TSS { - + DWORD _key; bool _valid; @@ -55,16 +55,16 @@ namespace ZThread { } /** - * Destroy the underlying supoprt for accessing tss with this + * Destroy the underlying supoprt for accessing tss with this * object. */ virtual ~TSS() { - - if(_valid) + + if(_valid) ::TlsFree(_key); - + } - + /** * Get the value stored in tss. * @@ -97,8 +97,8 @@ namespace ZThread { return oldValue; } - - + + }; } |