Skip to content
Open
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion src/mapnik_python.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
#pragma GCC diagnostic ignored "-Wunused-local-typedef"
#pragma GCC diagnostic ignored "-Wmissing-field-initializers"
#include "python_to_value.hpp"
#include <boost/thread/tss.hpp>
#include <boost/python/args.hpp> // for keywords, arg, etc
#include <boost/python/converter/from_python.hpp>
#include <boost/python/def.hpp> // for def
Expand Down Expand Up @@ -190,7 +191,7 @@ using mapnik::python_unblock_auto_block;
#ifdef MAPNIK_DEBUG
bool python_thread::thread_support = true;
#endif
thread_local std::unique_ptr<PyThreadState> python_thread::state;
boost::thread_specific_ptr<PyThreadState> python_thread::state;

struct agg_renderer_visitor_1
{
Expand Down
4 changes: 2 additions & 2 deletions src/mapnik_threads.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
#ifndef MAPNIK_THREADS_HPP
#define MAPNIK_THREADS_HPP

#include <thread>
#include <boost/thread/tss.hpp>
#include <Python.h>

namespace mapnik {
Expand Down Expand Up @@ -70,7 +70,7 @@ class python_thread
}

private:
static thread_local std::unique_ptr<PyThreadState> state;
static boost::thread_specific_ptr<PyThreadState> state;
#ifdef MAPNIK_DEBUG
static bool thread_support;
#endif
Expand Down