reconcile my and Sean's fixes

This commit is contained in:
Walter Bright 2009-02-08 23:18:30 +00:00
parent b8e9344ad8
commit 740fc18211
2 changed files with 11 additions and 10 deletions

View file

@ -614,13 +614,23 @@ extern (C)
/* from semaphore.h
*/
version (OSX)
{
alias int sem_t;
}
else version (linux)
{
struct sem_t
{
_pthread_fastlock __sem_lock;
int __sem_value;
void* __sem_waiting;
}
}
else
{
static assert(0);
}
int sem_init(sem_t*, int, uint);
int sem_wait(sem_t*);
int sem_trywait(sem_t*);