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/tls.hxx | |
parent | 33de34de425d2c34b88cdb6547b79b0ee18425ac (diff) |
Add support for early destruction of TLS object
Diffstat (limited to 'odb/details/tls.hxx')
-rw-r--r-- | odb/details/tls.hxx | 9 |
1 files changed, 9 insertions, 0 deletions
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 <typename T> + inline void + tls_free (T& x) + { + } + template <typename T> inline T* tls_get (T* p) |