From: Jay Freeman (saurik) Date: Sat, 11 Oct 2014 11:08:42 +0000 (-0700) Subject: Manually unify CYLocal::key_ into Library. X-Git-Tag: v0.9.503~24 X-Git-Url: https://git.saurik.com/cycript.git/commitdiff_plain/fa3c5be836cc074bdc12ba66298764a1da026e48 Manually unify CYLocal::key_ into Library. --- diff --git a/Library.cpp b/Library.cpp index 816dab6..c953155 100644 --- a/Library.cpp +++ b/Library.cpp @@ -44,6 +44,9 @@ #include "ConvertUTF.h" +template <> +::pthread_key_t CYLocal::key_ = Key_(); + /* C Strings {{{ */ CYUTF8String CYPoolUTF8String(CYPool &pool, CYUTF16String utf16) { // XXX: this is wrong diff --git a/Local.hpp b/Local.hpp index ba26fb1..695c389 100644 --- a/Local.hpp +++ b/Local.hpp @@ -57,7 +57,4 @@ class CYLocal { } }; -template -::pthread_key_t CYLocal::key_ = Key_(); - #endif/*CYCRIPT_LOCAL_HPP*/ diff --git a/Pooling.hpp b/Pooling.hpp index e3116d9..6ff7ebf 100644 --- a/Pooling.hpp +++ b/Pooling.hpp @@ -312,4 +312,7 @@ class CYLocalPool : #define $pool \ (*CYLocal::Get()) +template <> +::pthread_key_t CYLocal::key_; + #endif/*CYCRIPT_POOLING_HPP*/