summaryrefslogtreecommitdiffstats
path: root/Include
diff options
context:
space:
mode:
authorKumar Aditya <kumaraditya@python.org>2024-10-13 15:29:07 (GMT)
committerGitHub <noreply@github.com>2024-10-13 15:29:07 (GMT)
commit022c50d190e14affb952a244c4eb6e4a644ad0c9 (patch)
tree1398e89a69154933d9c7b042c6f65324ed02ab42 /Include
parent283ea5f3b2b6a18605b8598a979afe263b0f21ce (diff)
downloadcpython-022c50d190e14affb952a244c4eb6e4a644ad0c9.zip
cpython-022c50d190e14affb952a244c4eb6e4a644ad0c9.tar.gz
cpython-022c50d190e14affb952a244c4eb6e4a644ad0c9.tar.bz2
fix comment in _PyMutex_TryUnlock (#125319)
Diffstat (limited to 'Include')
-rw-r--r--Include/internal/pycore_lock.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/Include/internal/pycore_lock.h b/Include/internal/pycore_lock.h
index e6da083..cd7deda 100644
--- a/Include/internal/pycore_lock.h
+++ b/Include/internal/pycore_lock.h
@@ -64,8 +64,8 @@ PyMutex_LockFlags(PyMutex *m, _PyLockFlags flags)
}
}
-// Unlock a mutex, returns 0 if the mutex is not locked (used for improved
-// error messages).
+// Unlock a mutex, returns -1 if the mutex is not locked (used for improved
+// error messages) otherwise returns 0.
extern int _PyMutex_TryUnlock(PyMutex *m);