diff options
Diffstat (limited to 'odb/details/posix/tls.hxx')
-rw-r--r-- | odb/details/posix/tls.hxx | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/odb/details/posix/tls.hxx b/odb/details/posix/tls.hxx index d23a09a..0db3d35 100644 --- a/odb/details/posix/tls.hxx +++ b/odb/details/posix/tls.hxx @@ -23,6 +23,9 @@ namespace odb T& get () const; + void + free (); + private: tls (const tls&); tls& operator= (const tls&); @@ -74,6 +77,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) { |