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;
190190#ifdef MAPNIK_DEBUG
191191bool python_thread::thread_support = true ;
192192#endif
193- boost::thread_specific_ptr <PyThreadState> python_thread::state;
193+ thread_local std::unique_ptr <PyThreadState> python_thread::state;
194194
195195struct agg_renderer_visitor_1
196196{
Original file line number Diff line number Diff line change 2222#ifndef MAPNIK_THREADS_HPP
2323#define MAPNIK_THREADS_HPP
2424
25- #include < boost/ thread/tss.hpp > // for thread_specific_ptr
25+ #include < thread>
2626#include < Python.h>
2727
2828namespace mapnik {
@@ -70,7 +70,7 @@ class python_thread
7070 }
7171
7272private:
73- static boost::thread_specific_ptr <PyThreadState> state;
73+ static thread_local std::unique_ptr <PyThreadState> state;
7474#ifdef MAPNIK_DEBUG
7575 static bool thread_support;
7676#endif
You can’t perform that action at this time.
0 commit comments