Re: c bindings with non-python thread callback while python exits

2021-01-26 Thread Barry Scott
> On 26 Jan 2021, at 14:35, Paul Grinberg wrote: > > I have a C++ library (luckily with source code, so I know what's going on) to > which I wrote c bindings. The library internally starts an event pthread > which generates callbacks back into python. The c binding for processing > these ca

c bindings with non-python thread callback while python exits

2021-01-26 Thread Paul Grinberg
I have a C++ library (luckily with source code, so I know what's going on) to which I wrote c bindings. The library internally starts an event pthread which generates callbacks back into python. The c binding for processing these callbacks look like this (simplified for convenience): PyGILState