File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -190,7 +190,7 @@ using mapnik::python_unblock_auto_block;
190
190
#ifdef MAPNIK_DEBUG
191
191
bool python_thread::thread_support = true ;
192
192
#endif
193
- boost::thread_specific_ptr <PyThreadState> python_thread::state;
193
+ thread_local std::unique_ptr <PyThreadState> python_thread::state;
194
194
195
195
struct agg_renderer_visitor_1
196
196
{
Original file line number Diff line number Diff line change 22
22
#ifndef MAPNIK_THREADS_HPP
23
23
#define MAPNIK_THREADS_HPP
24
24
25
- #include < boost/ thread/tss.hpp > // for thread_specific_ptr
25
+ #include < thread>
26
26
#include < Python.h>
27
27
28
28
namespace mapnik {
@@ -70,7 +70,7 @@ class python_thread
70
70
}
71
71
72
72
private:
73
- static boost::thread_specific_ptr <PyThreadState> state;
73
+ static thread_local std::unique_ptr <PyThreadState> state;
74
74
#ifdef MAPNIK_DEBUG
75
75
static bool thread_support;
76
76
#endif
You can’t perform that action at this time.
0 commit comments