mirror of https://github.com/python/cpython
gh-115304: Add doc for initializing PyMutex as a global variable (#115305)
This commit is contained in:
parent
5f7df88821
commit
87a65a5bd4
|
@ -26,6 +26,9 @@ extern "C" {
|
|||
// Typical initialization:
|
||||
// PyMutex m = (PyMutex){0};
|
||||
//
|
||||
// Or initialize as global variables:
|
||||
// static PyMutex m;
|
||||
//
|
||||
// Typical usage:
|
||||
// PyMutex_Lock(&m);
|
||||
// ...
|
||||
|
|
Loading…
Reference in New Issue