[C++-sig] A few questions on Boost.Python

Anders Wallin anders.e.e.wallin at gmail.com
Tue Jan 24 08:32:44 CET 2012


>> 5) I also read that Boost.Python is not thread safe, is that true and if
>> yes can it be fixed/hacked ?
>>
>
> Other people on this list know a lot more than I do about this topic.  I
> believe the answer depends on whether the multithreaded programming crosses
> the C++/Python boundary.


FWIW, it is quite straightforward to write C++ code that uses e.g.
OpenMP to do work in multiple threads, and then returns results to
python.
I've only done a case where we wait in python for the c++
function(that potentially uses OpenMP or other threading libs) to
finish before continuing.

AW


More information about the Cplusplus-sig mailing list