From: Kumar Aditya Date: Sun, 13 Oct 2024 15:29:07 +0000 (+0530) Subject: fix comment in _PyMutex_TryUnlock (#125319) X-Git-Tag: v3.14.0a1~50 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=022c50d190e14affb952a244c4eb6e4a644ad0c9;p=thirdparty%2FPython%2Fcpython.git fix comment in _PyMutex_TryUnlock (#125319) --- diff --git a/Include/internal/pycore_lock.h b/Include/internal/pycore_lock.h index e6da083b807c..cd7deda00c7b 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);