projects
/
musl
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
8f4700c3058a4735516a5ae94330fb59df004234
[musl]
/
sem_post.c
1
#include <semaphore.h>
2
#include "pthread_impl.h"
3
4
int sem_post(sem_t *sem)
5
{
6
a_inc(sem->__val);
7
if (sem->__val[1])
8
__wake(sem->__val, 1, 0);
9
return 0;
10
}