From 81ac8f1ff70adb0b7a1e4625dcf237bcec83b2a4 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Fri, 10 Sep 2010 11:26:29 +0200 Subject: Add support for early destruction of TLS object --- odb/details/posix/tls.hxx | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'odb/details/posix/tls.hxx') 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 + inline void + tls_free (tls& t) + { + t.free (); + } + + template inline T* tls_get (const tls& t) { -- cgit v1.1