From c858afb5820ec9f0f3571c0cb4adc4e17de8122f Mon Sep 17 00:00:00 2001 From: "Nicolas \"Pixel\" Noble" Date: Fri, 20 Jun 2014 11:30:32 -0700 Subject: Forgot to initialize our TLS factory. --- includes/Local.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 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 & constructor) { m_constructor = constructor; } TLS * get() { -- cgit v1.2.3