diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2010-09-10 11:26:29 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2010-09-10 11:26:29 +0200 |
commit | 81ac8f1ff70adb0b7a1e4625dcf237bcec83b2a4 (patch) | |
tree | f046f261ea0e81da62a1f8d723d67d8ead8bd8fc /odb/details/win32/tls.hxx | |
parent | 33de34de425d2c34b88cdb6547b79b0ee18425ac (diff) |
Add support for early destruction of TLS object
Diffstat (limited to 'odb/details/win32/tls.hxx')
-rw-r--r-- | odb/details/win32/tls.hxx | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/odb/details/win32/tls.hxx b/odb/details/win32/tls.hxx index b1dce0f..3354723 100644 --- a/odb/details/win32/tls.hxx +++ b/odb/details/win32/tls.hxx @@ -39,6 +39,9 @@ namespace odb T& get () const; + void + free (); + private: tls (const tls&); tls& operator= (const tls&); @@ -88,6 +91,13 @@ namespace odb } template <typename T> + inline void + tls_free (tls<T>& t) + { + t.free (); + } + + template <typename T> inline T* tls_get (const tls<T*>& t) { |