mirror of
https://github.com/dlang/phobos.git
synced 2025-05-11 14:41:08 +03:00
reconcile my and Sean's fixes
This commit is contained in:
parent
b8e9344ad8
commit
740fc18211
2 changed files with 11 additions and 10 deletions
|
@ -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*);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue