Re: [pygccxml-development] gil_guard_t example ?
Brought to you by:
mbaas,
roman_yakovenko
From: Roman Y. <rom...@gm...> - 2008-08-19 12:43:58
|
On Tue, Aug 19, 2008 at 2:04 PM, Damien Fagnou <dam...@mo...> wrote: > Hi , > > some of the member function that we bind can potentially take some time > , and we are looking to a way to > release the GIL during there execution . > > looking on the web I see that py++ as some things in place for that : > gil_guard_t > and I found couple of project using that , but I am still a little > confuse on how to use it . gil_guard_t is used for completely other purposes. If you have algorithm, written in C++, which invokes code written in Python, than you have to lock GIL. This is exactly what gil_guard_t does. Not the opposite. > is there an example somewhere on how to best use it ? No -- Roman Yakovenko C++ Python language binding http://www.language-binding.net/ |