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/tls.hxx | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'odb/details/tls.hxx') diff --git a/odb/details/tls.hxx b/odb/details/tls.hxx index d2627be..2ed68ab 100644 --- a/odb/details/tls.hxx +++ b/odb/details/tls.hxx @@ -26,6 +26,15 @@ namespace odb return x; } + // If early destructions is possible, destroy the object and free + // any allocated resources. + // + template + inline void + tls_free (T& x) + { + } + template inline T* tls_get (T* p) -- cgit v1.1