summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNicolas "Pixel" Noble <pixel@nobis-crew.org>2014-06-20 11:30:32 -0700
committerNicolas "Pixel" Noble <pixel@nobis-crew.org>2014-06-20 11:30:32 -0700
commitc858afb5820ec9f0f3571c0cb4adc4e17de8122f (patch)
treec0ee161d73732d503ec48782da3107b948ea3f34
parent9b1007c00eaefd98f0f70ea31c9c953271686136 (diff)
Forgot to initialize our TLS factory.
-rw-r--r--includes/Local.h2
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() {