Opened 3 years ago

Closed 3 years ago

#713 closed enhancement (fixed)

Document importance of PyEval_EvalInitThreads()

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

Description

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 (2)

comment:1 Changed 3 years ago by nikratio

  • Cc nikratio added

comment:2 Changed 3 years ago by mark

  • Resolution set to fixed
  • Status changed from new to closed

Fixed it a while ago in 8a7d02b61ac0d2cd72959060d7ef19f8955eda41

Note: See TracTickets for help on using tickets.