summaryrefslogtreecommitdiffstats
path: root/include/sh_sem.h
blob: 6c1fc340e1d99c6a5ca1f54bdbdfd33930972690 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#ifndef SH_SEM_H
#define SH_SEM_H

#define SH_SEM_LOCK       -1
#define SH_SEM_UNLOCK      1

void sh_sem_open();
void sh_sem_trylock();
void sh_sem_lock();
void sh_sem_unlock(long val);
void sh_sem_close();

int  sh_sem_wait(const char * wait);
#endif