Question

I have a question about how to call a multi-threaded C function in Cython.

Do I need to release/acquire the GIL before/after I do the multi-threaded stuff in the C function?

Or can I just use it like a normal C function?

Should I follow the directions here for general Python extensions?

Was it helpful?

Solution

You should have looked down a few sections.

http://docs.python.org/c-api/init.html#non-python-created-threads

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top