Commit dd958e0d authored by Georg Brandl's avatar Georg Brandl

Fix call signature and markup.

parent 35288c6b
...@@ -797,13 +797,13 @@ from a worker thread and the actual call than made at the earliest ...@@ -797,13 +797,13 @@ from a worker thread and the actual call than made at the earliest
convenience by the main thread where it has possession of the global convenience by the main thread where it has possession of the global
interpreter lock and can perform any Python API calls. interpreter lock and can perform any Python API calls.
.. cfunction:: void Py_AddPendingCall( int (*func)(void *), void *arg) ) .. cfunction:: void Py_AddPendingCall( int (*func)(void *, void *arg) )
.. index:: single: Py_AddPendingCall() .. index:: single: Py_AddPendingCall()
Post a notification to the Python main thread. If successful, Post a notification to the Python main thread. If successful,
\*:attr`func` will be called with the argument :attr:`arg` at the earliest *func* will be called with the argument *arg* at the earliest
convenience. \*:attr:`func` will be called having the global interpreter convenience. *func* will be called having the global interpreter
lock held and can thus use the full Python API and can take any lock held and can thus use the full Python API and can take any
action such as setting object attributes to signal IO completion. action such as setting object attributes to signal IO completion.
It must return 0 on success, or -1 signalling an exception. It must return 0 on success, or -1 signalling an exception.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment