From 530439cb7f1a2e3e32be2d1c1c06db0bbfa29f9b Mon Sep 17 00:00:00 2001 From: Kumar Aditya Date: Fri, 11 Oct 2024 19:56:24 +0530 Subject: [PATCH 1/2] fix comment --- Include/internal/pycore_lock.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Include/internal/pycore_lock.h b/Include/internal/pycore_lock.h index e6da083b807ce5..8313da25565553 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); From cda3ffdf6199c6b6d77a14acafc9082b7a800cc2 Mon Sep 17 00:00:00 2001 From: Kumar Aditya Date: Fri, 11 Oct 2024 20:08:31 +0530 Subject: [PATCH 2/2] Update Include/internal/pycore_lock.h --- Include/internal/pycore_lock.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Include/internal/pycore_lock.h b/Include/internal/pycore_lock.h index 8313da25565553..cd7deda00c7bee 100644 --- a/Include/internal/pycore_lock.h +++ b/Include/internal/pycore_lock.h @@ -65,7 +65,7 @@ PyMutex_LockFlags(PyMutex *m, _PyLockFlags flags) } // Unlock a mutex, returns -1 if the mutex is not locked (used for improved -// error messages) otherwise returns 0; +// error messages) otherwise returns 0. extern int _PyMutex_TryUnlock(PyMutex *m);