Skip to content

Commit

Permalink
pythongh-115304: Add doc for initializing PyMutex as a global variable (
Browse files Browse the repository at this point in the history
  • Loading branch information
aisk authored and woodruffw committed Mar 4, 2024
1 parent 7c42ba2 commit 4c85a2a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Include/internal/pycore_lock.h
Original file line number Diff line number Diff line change
Expand Up @@ -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);
// ...
Expand Down

0 comments on commit 4c85a2a

Please sign in to comment.