mirror of
https://github.com/fluencelabs/musl
synced 2025-06-28 14:11:56 +00:00
clean up handling of thread/nothread mode, locking
This commit is contained in:
@ -3,7 +3,7 @@
|
||||
int pthread_setcancelstate(int new, int *old)
|
||||
{
|
||||
if (new > 1U) return EINVAL;
|
||||
if (libc.lock) {
|
||||
if (libc.threaded) {
|
||||
struct pthread *self = __pthread_self();
|
||||
if (old) *old = self->canceldisable;
|
||||
self->canceldisable = new;
|
||||
|
Reference in New Issue
Block a user