Ticket #713 (closed enhancement: fixed)

Opened 3 years ago

Last modified 3 years ago

Document importance of PyEval_EvalInitThreads()

Reported by: nikratio Owned by:
Priority: major Milestone: wishlist
Component: Documentation Keywords:
Cc: nikratio


It would be great if  http://docs.cython.org/src/userguide/external_C_code.html#acquiring-and-releasing-the-gil could be extended with something like

" WARNING: If the C components of the application are starting threads before any Python code does so, the PyEval?_EvalInitThreads() needs to be called (to initialize Python thread support) before any "with gil" functions are invoked. "

in the "Acquiring the GIL" section.

See also  http://article.gmane.org/gmane.comp.python.cython.user/4207

Change History

Changed 3 years ago by nikratio

  • cc nikratio added

Changed 3 years ago by mark

  • status changed from new to closed
  • resolution set to fixed

Fixed it a while ago in 8a7d02b61ac0d2cd72959060d7ef19f8955eda41

Note: See TracTickets for help on using tickets.