X-Git-Url: http://nsz.repo.hu/git/?p=musl;a=blobdiff_plain;f=src%2Fthread%2Fsynccall.c;h=1520b3b40b582855e27b394120500fb32ddb5d0a;hp=2cd25e4bb2b84315ca4adb9c562d4592eebcb55a;hb=0c29adfe427ab6ed98cb73644f8f52a76045245c;hpb=407d933052c310ebc5541dae2ecd8c4bd8f55fb9 diff --git a/src/thread/synccall.c b/src/thread/synccall.c index 2cd25e4b..1520b3b4 100644 --- a/src/thread/synccall.c +++ b/src/thread/synccall.c @@ -47,14 +47,6 @@ static void handler(int sig, siginfo_t *si, void *ctx) errno = old_errno; } -void __synccall_wait() -{ - struct chain *ch = cur; - sem_post(&ch->sem2); - while (sem_wait(&ch->sem)); - sem_post(&ch->sem); -} - void __synccall(void (*func)(void *), void *ctx) { pthread_t self;