]> git.saurik.com Git - cycript.git/commitdiff
Manually unify CYLocal<CYPool>::key_ into Library.
authorJay Freeman (saurik) <saurik@saurik.com>
Sat, 11 Oct 2014 11:08:42 +0000 (04:08 -0700)
committerJay Freeman (saurik) <saurik@saurik.com>
Sat, 11 Oct 2014 11:08:42 +0000 (04:08 -0700)
Library.cpp
Local.hpp
Pooling.hpp

index 816dab6cebb44a0d27d86eccec185797e45e1702..c95315570f864f4c033456515d68260af67811ec 100644 (file)
@@ -44,6 +44,9 @@
 
 #include "ConvertUTF.h"
 
+template <>
+::pthread_key_t CYLocal<CYPool>::key_ = Key_();
+
 /* C Strings {{{ */
 CYUTF8String CYPoolUTF8String(CYPool &pool, CYUTF16String utf16) {
     // XXX: this is wrong
index ba26fb1f76e542141f692e9a5a01f2c6d4d418e8..695c389933240509605c0df9f9cc15744874fdb8 100644 (file)
--- a/Local.hpp
+++ b/Local.hpp
@@ -57,7 +57,4 @@ class CYLocal {
     }
 };
 
-template <typename Type_>
-::pthread_key_t CYLocal<Type_>::key_ = Key_();
-
 #endif/*CYCRIPT_LOCAL_HPP*/
index e3116d949623df36169bd35e9b3bac96ab52f79f..6ff7ebf9c6b4f6389a8f23bf987119adb318a8fb 100644 (file)
@@ -312,4 +312,7 @@ class CYLocalPool :
 #define $pool \
     (*CYLocal<CYPool>::Get())
 
+template <>
+::pthread_key_t CYLocal<CYPool>::key_;
+
 #endif/*CYCRIPT_POOLING_HPP*/