在 2026-9-2 18:31, Kirill Makurin 写道:
Hello, I would like to remind about these patches.
I'll take a look later. For the time being, Claude Sonnet 5 suggests these
changes:
diff --git a/mingw-w64-libraries/winpthreads/src/mutex.c
b/mingw-w64-libraries/winpthreads/src/mutex.c
index 042c3879d..891ba5506 100644
--- a/mingw-w64-libraries/winpthreads/src/mutex.c
+++ b/mingw-w64-libraries/winpthreads/src/mutex.c
@@ -348,7 +351,7 @@ static void WinpthreadsErrorCheckMutexDestroy
(WinpthreadsMutex *wMutex) {
HANDLE event = InterlockedExchangePointer ((void **) &mutex->Event, NULL);
if (event != NULL) {
- CloseHandle (mutex->Event);
+ CloseHandle (event);
}
free (mutex);
@@ -476,7 +481,7 @@ static void WinpthreadsRecursiveMutexDestroy
(WinpthreadsMutex *wMutex) {
HANDLE event = InterlockedExchangePointer ((void **) &mutex->Event, NULL);
if (event != NULL) {
- CloseHandle (mutex->Event);
+ CloseHandle (event);
}
free (mutex);
@@ -608,7 +613,7 @@ static const WinpthreadsMutexImpl
WinpthreadsRecursiveMutexImpl = {
/**
* Obtain pointer to `WinpthreadsMutex` structure pointed to by `m`.
*
- * If `m` points to statically initialzied `pthread_mutex_t` object,
+ * If `m` points to statically initialized `pthread_mutex_t` object,
* allocate `WinpthreadsMutex` structure and store its address in `*m`.
*
* On success, stores pointer to `WinpthreadsMutex` structure in `*wMutex`.
@@ -728,7 +733,7 @@ int pthread_mutex_timedlock64(pthread_mutex_t *m, const
struct _timespec64 *ts)
*/
case 0:
/**
- * An unexpected error has occured.
+ * An unexpected error has occurred.
*/
default:
return error_code;
diff --git a/mingw-w64-libraries/winpthreads/tests/pthread_mutex/default-trylock-recursive.c
b/mingw-w64-libraries/winpthreads/tests/pthread_mutex/default-trylock-recursive.c
index 970569ef6..a11ee5b45 100644 --- a/mingw-w64-libraries/winpthreads/tests/pthread_mutex/default-trylock-recursive.c +++ b/mingw-w64-libraries/winpthreads/tests/pthread_mutex/default-trylock-recursive.c @@ -37,7 +37,7 @@ * * Thread A locks L. * - * Thread A attmpts to lock L again; the call to `pthread_mutex_trylock` must + * Thread A attempts to lock L again; the call to `pthread_mutex_trylock` must * fail with EBUSY. * * Thread A unlocks L.diff --git a/mingw-w64-libraries/winpthreads/tests/pthread_mutex/errorcheck-trylock-recursive.c b/mingw-w64-libraries/winpthreads/tests/pthread_mutex/errorcheck-trylock-recursive.c
index 24e5fa445..3cc7f3c1f 100644 --- a/mingw-w64-libraries/winpthreads/tests/pthread_mutex/errorcheck-trylock-recursive.c +++ b/mingw-w64-libraries/winpthreads/tests/pthread_mutex/errorcheck-trylock-recursive.c @@ -37,7 +37,7 @@ * * Thread A locks L. * - * Thread A attmpts to lock L again; the call to `pthread_mutex_trylock` must + * Thread A attempts to lock L again; the call to `pthread_mutex_trylock` must * fail with EBUSY. * * Thread A unlocks L.diff --git a/mingw-w64-libraries/winpthreads/tests/pthread_mutex/normal-trylock-recursive.c b/mingw-w64-libraries/winpthreads/tests/pthread_mutex/normal-trylock-recursive.c
index 92b6f192e..79cc085b2 100644 --- a/mingw-w64-libraries/winpthreads/tests/pthread_mutex/normal-trylock-recursive.c +++ b/mingw-w64-libraries/winpthreads/tests/pthread_mutex/normal-trylock-recursive.c @@ -37,7 +37,7 @@ * * Thread A locks L. * - * Thread A attmpts to lock L again; the call to `pthread_mutex_trylock` must + * Thread A attempts to lock L again; the call to `pthread_mutex_trylock` must * fail with EBUSY. * * Thread A unlocks L.diff --git a/mingw-w64-libraries/winpthreads/tests/pthread_mutex/recursive-trylock-recursive.c b/mingw-w64-libraries/winpthreads/tests/pthread_mutex/recursive-trylock-recursive.c
index 1fdd16078..5a4b7ef32 100644 --- a/mingw-w64-libraries/winpthreads/tests/pthread_mutex/recursive-trylock-recursive.c +++ b/mingw-w64-libraries/winpthreads/tests/pthread_mutex/recursive-trylock-recursive.c @@ -37,7 +37,7 @@ * * Thread A locks L. * - * Thread A attmpts to lock L again; the call to `pthread_mutex_trylock` must + * Thread A attempts to lock L again; the call to `pthread_mutex_trylock` must * succeed. * * Thread A unlocks L. -- Best regards, LIU Hao
OpenPGP_signature.asc
Description: OpenPGP digital signature
_______________________________________________ Mingw-w64-public mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/mingw-w64-public
