4

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?

Tianyang Li
  • 1,755
  • 5
  • 26
  • 42

1 Answers1

3

You should have looked down a few sections.

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

JAB
  • 20,783
  • 6
  • 71
  • 80