mirror of
https://github.com/fluencelabs/musl
synced 2025-06-25 12:42:02 +00:00
fix misspelled PTHREAD_CANCELED constant
This commit is contained in:
@ -65,7 +65,7 @@ extern "C" {
|
|||||||
#define PTHREAD_CANCEL_DEFERRED 0
|
#define PTHREAD_CANCEL_DEFERRED 0
|
||||||
#define PTHREAD_CANCEL_ASYNCHRONOUS 1
|
#define PTHREAD_CANCEL_ASYNCHRONOUS 1
|
||||||
|
|
||||||
#define PTHREAD_CANCELLED ((void *)-1)
|
#define PTHREAD_CANCELED ((void *)-1)
|
||||||
|
|
||||||
|
|
||||||
#define PTHREAD_BARRIER_SERIAL_THREAD (-1)
|
#define PTHREAD_BARRIER_SERIAL_THREAD (-1)
|
||||||
|
@ -13,7 +13,7 @@ void __pthread_unwind_next(struct __ptcb *cb)
|
|||||||
if (cb->__next) longjmp((void *)cb->__next->__jb, 1);
|
if (cb->__next) longjmp((void *)cb->__next->__jb, 1);
|
||||||
|
|
||||||
self = pthread_self();
|
self = pthread_self();
|
||||||
if (self->cancel) self->result = PTHREAD_CANCELLED;
|
if (self->cancel) self->result = PTHREAD_CANCELED;
|
||||||
|
|
||||||
LOCK(&self->exitlock);
|
LOCK(&self->exitlock);
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user