Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
SUSE:SLE-15-SP1:Update
librdkafka
0001-Align-bundled-c11-threads-tinycthreads-con...
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File 0001-Align-bundled-c11-threads-tinycthreads-constants-to-.patch of Package librdkafka
From 7915f2a9adf30ca5938945c607b35c9c5a5a63e3 Mon Sep 17 00:00:00 2001 From: Magnus Edenhill <magnus@edenhill.se> Date: Mon, 6 Apr 2020 12:52:25 +0200 Subject: [PATCH] Align bundled c11 threads (tinycthreads) constants to glibc and musl (#2681) --- src/tinycthread.h | 18 +++++++++++------- 1 file changed, 11 insertions(+), 7 deletions(-) diff --git a/src/tinycthread.h b/src/tinycthread.h index 93cec9ff..6644746c 100644 --- a/src/tinycthread.h +++ b/src/tinycthread.h @@ -181,16 +181,20 @@ int _tthread_timespec_get(struct timespec *ts, int base); #endif /* Function return values */ -#define thrd_error 0 /**< The requested operation failed */ -#define thrd_success 1 /**< The requested operation succeeded */ -#define thrd_timedout 2 /**< The time specified in the call was reached without acquiring the requested resource */ -#define thrd_busy 3 /**< The requested operation failed because a tesource requested by a test and return function is already in use */ -#define thrd_nomem 4 /**< The requested operation failed because it was unable to allocate memory */ +/* Note: The values are unspecified by C11 but match glibc and musl to make + * sure they're compatible for the case where librdkafka was built with + * tinycthreads but the runtime libc also provides C11 threads. + * The *BSD values are notably different. */ +#define thrd_success 0 /**< The requested operation succeeded */ +#define thrd_busy 1 /**< The requested operation failed because a tesource requested by a test and return function is already in use */ +#define thrd_error 2 /**< The requested operation failed */ +#define thrd_nomem 3 /**< The requested operation failed because it was unable to allocate memory */ +#define thrd_timedout 4 /**< The time specified in the call was reached without acquiring the requested resource */ /* Mutex types */ #define mtx_plain 0 -#define mtx_timed 1 -#define mtx_recursive 2 +#define mtx_recursive 1 +#define mtx_timed 2 /* Mutex */ #if defined(_TTHREAD_WIN32_) -- 2.32.0
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor