From 57b595039040eaa15bece85b7cc71d952281b269 Mon Sep 17 00:00:00 2001 From: LIU Hao <[email protected]> Date: Sat, 19 Sep 2026 18:24:28 +0800 Subject: [PATCH 2/2] winpthreads: Fix typos in comments
Signed-off-by: LIU Hao <[email protected]> --- mingw-w64-libraries/winpthreads/include/pthread.h | 2 +- mingw-w64-libraries/winpthreads/src/spinlock.c | 2 +- .../winpthreads/tests/pthread_mutex/attr-prioceiling.c | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-)diff --git a/mingw-w64-libraries/winpthreads/include/pthread.h b/mingw-w64-libraries/winpthreads/include/pthread.h
index b27dbfbca..9bc956360 100644
--- a/mingw-w64-libraries/winpthreads/include/pthread.h
+++ b/mingw-w64-libraries/winpthreads/include/pthread.h
@@ -208,7 +208,7 @@ WINPTHREAD_API int pthread_attr_setschedpolicy
(pthread_attr_t *attr, int pol);
WINPTHREAD_API int pthread_attr_getschedpolicy (const pthread_attr_t *attr,
int *pol);
/**
- * Mutex (pthread_mutex_t) declarations, definitons and functions.
+ * Mutex (pthread_mutex_t) declarations, definitions and functions.
*/
#define PTHREAD_MUTEX_DEFAULT PTHREAD_MUTEX_NORMAL
diff --git a/mingw-w64-libraries/winpthreads/src/spinlock.c
b/mingw-w64-libraries/winpthreads/src/spinlock.c
index c6648bc82..836f16c50 100644
--- a/mingw-w64-libraries/winpthreads/src/spinlock.c
+++ b/mingw-w64-libraries/winpthreads/src/spinlock.c
@@ -80,7 +80,7 @@ typedef struct {
/**
* Obtain pointer to `WinpthreadsSpinlock` structure pointed to by `lock`.
*
- * If `lock` points to statically initialzied `pthread_spinlock_t` object,
+ * If `lock` points to statically initialized `pthread_spinlock_t` object,
* allocate `WinpthreadsSpinlock` structure and store its address in `*lock`.
*
* On success, stores pointer to `WinpthreadsSpinlock` structure in
`*spinlock`.
diff --git a/mingw-w64-libraries/winpthreads/tests/pthread_mutex/attr-prioceiling.c
b/mingw-w64-libraries/winpthreads/tests/pthread_mutex/attr-prioceiling.c
index 789b87e27..d2d0a8076 100644
--- a/mingw-w64-libraries/winpthreads/tests/pthread_mutex/attr-prioceiling.c
+++ b/mingw-w64-libraries/winpthreads/tests/pthread_mutex/attr-prioceiling.c
@@ -46,7 +46,7 @@ static void DoTest (int value, int expectedValue, int
expectedReturn1, int expec
int main (void) {
/**
- * Any valid `THRAED_PRIORITY_*` value can be set for prioceiling attribute.
+ * Any valid `THREAD_PRIORITY_*` value can be set for prioceiling attribute.
*
* Currently, it has no effect; POSIX realtime extensions are not
implemented.
*/
--
2.55.0
From 57b595039040eaa15bece85b7cc71d952281b269 Mon Sep 17 00:00:00 2001 From: LIU Hao <[email protected]> Date: Sat, 19 Sep 2026 18:24:28 +0800 Subject: [PATCH 2/2] winpthreads: Fix typos in comments Signed-off-by: LIU Hao <[email protected]> --- mingw-w64-libraries/winpthreads/include/pthread.h | 2 +- mingw-w64-libraries/winpthreads/src/spinlock.c | 2 +- .../winpthreads/tests/pthread_mutex/attr-prioceiling.c | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/mingw-w64-libraries/winpthreads/include/pthread.h b/mingw-w64-libraries/winpthreads/include/pthread.h index b27dbfbca..9bc956360 100644 --- a/mingw-w64-libraries/winpthreads/include/pthread.h +++ b/mingw-w64-libraries/winpthreads/include/pthread.h @@ -208,7 +208,7 @@ WINPTHREAD_API int pthread_attr_setschedpolicy (pthread_attr_t *attr, int pol); WINPTHREAD_API int pthread_attr_getschedpolicy (const pthread_attr_t *attr, int *pol); /** - * Mutex (pthread_mutex_t) declarations, definitons and functions. + * Mutex (pthread_mutex_t) declarations, definitions and functions. */ #define PTHREAD_MUTEX_DEFAULT PTHREAD_MUTEX_NORMAL diff --git a/mingw-w64-libraries/winpthreads/src/spinlock.c b/mingw-w64-libraries/winpthreads/src/spinlock.c index c6648bc82..836f16c50 100644 --- a/mingw-w64-libraries/winpthreads/src/spinlock.c +++ b/mingw-w64-libraries/winpthreads/src/spinlock.c @@ -80,7 +80,7 @@ typedef struct { /** * Obtain pointer to `WinpthreadsSpinlock` structure pointed to by `lock`. * - * If `lock` points to statically initialzied `pthread_spinlock_t` object, + * If `lock` points to statically initialized `pthread_spinlock_t` object, * allocate `WinpthreadsSpinlock` structure and store its address in `*lock`. * * On success, stores pointer to `WinpthreadsSpinlock` structure in `*spinlock`. diff --git a/mingw-w64-libraries/winpthreads/tests/pthread_mutex/attr-prioceiling.c b/mingw-w64-libraries/winpthreads/tests/pthread_mutex/attr-prioceiling.c index 789b87e27..d2d0a8076 100644 --- a/mingw-w64-libraries/winpthreads/tests/pthread_mutex/attr-prioceiling.c +++ b/mingw-w64-libraries/winpthreads/tests/pthread_mutex/attr-prioceiling.c @@ -46,7 +46,7 @@ static void DoTest (int value, int expectedValue, int expectedReturn1, int expec int main (void) { /** - * Any valid `THRAED_PRIORITY_*` value can be set for prioceiling attribute. + * Any valid `THREAD_PRIORITY_*` value can be set for prioceiling attribute. * * Currently, it has no effect; POSIX realtime extensions are not implemented. */ -- 2.55.0
OpenPGP_signature.asc
Description: OpenPGP digital signature
_______________________________________________ Mingw-w64-public mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/mingw-w64-public
