diff options
Diffstat (limited to 'includes/Local.h')
-rw-r--r-- | includes/Local.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/includes/Local.h b/includes/Local.h index b9a7741..2ec65f8 100644 --- a/includes/Local.h +++ b/includes/Local.h @@ -26,7 +26,7 @@ class PThreadsTLSManager : public TLSManager { template <class TLS> class PThreadsTLSFactory : private PThreadsTLSManager { public: - PThreadsTLSFactory() : m_constructor([]() -> TLS * { return new TLS(); }) { } + PThreadsTLSFactory() : m_constructor([]() -> TLS * { return new TLS(); }) { init(); } ~PThreadsTLSFactory() { destroyAll(); } void setConstructor(const std::function<TLS *()> & constructor) { m_constructor = constructor; } TLS * get() { |