From fa3c5be836cc074bdc12ba66298764a1da026e48 Mon Sep 17 00:00:00 2001 From: "Jay Freeman (saurik)" Date: Sat, 11 Oct 2014 04:08:42 -0700 Subject: [PATCH] Manually unify CYLocal::key_ into Library. --- Library.cpp | 3 +++ Local.hpp | 3 --- Pooling.hpp | 3 +++ 3 files changed, 6 insertions(+), 3 deletions(-) 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*/ -- 2.47.2