diff options
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; } - - + + }; } |