summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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);