mirror of
https://github.com/dlang/phobos.git
synced 2025-05-14 17:05:58 +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
|
/* from semaphore.h
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
version (OSX)
|
||||||
|
{
|
||||||
|
alias int sem_t;
|
||||||
|
}
|
||||||
|
else version (linux)
|
||||||
|
{
|
||||||
struct sem_t
|
struct sem_t
|
||||||
{
|
{
|
||||||
_pthread_fastlock __sem_lock;
|
_pthread_fastlock __sem_lock;
|
||||||
int __sem_value;
|
int __sem_value;
|
||||||
void* __sem_waiting;
|
void* __sem_waiting;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
static assert(0);
|
||||||
|
}
|
||||||
int sem_init(sem_t*, int, uint);
|
int sem_init(sem_t*, int, uint);
|
||||||
int sem_wait(sem_t*);
|
int sem_wait(sem_t*);
|
||||||
int sem_trywait(sem_t*);
|
int sem_trywait(sem_t*);
|
||||||
|
|
|
@ -5,15 +5,11 @@
|
||||||
|
|
||||||
module std.c.linux.pthread;
|
module std.c.linux.pthread;
|
||||||
|
|
||||||
<<<<<<< .mine
|
|
||||||
import std.c.linux.linux;
|
import std.c.linux.linux;
|
||||||
|
|
||||||
extern (C)
|
|
||||||
=======
|
|
||||||
extern (C):
|
extern (C):
|
||||||
|
|
||||||
version(linux)
|
version(linux)
|
||||||
>>>>>>> .r909
|
|
||||||
{
|
{
|
||||||
/* pthread declarations taken from pthread headers and
|
/* pthread declarations taken from pthread headers and
|
||||||
http://svn.dsource.org/projects/bindings/trunk/pthreads.d
|
http://svn.dsource.org/projects/bindings/trunk/pthreads.d
|
||||||
|
@ -209,11 +205,6 @@ version(OSX)
|
||||||
_pthread_cleanup_buffer* __next;
|
_pthread_cleanup_buffer* __next;
|
||||||
}
|
}
|
||||||
|
|
||||||
struct __sched_param // bits/sched.h
|
|
||||||
{
|
|
||||||
int __sched_priority;
|
|
||||||
}
|
|
||||||
|
|
||||||
struct __sched_param
|
struct __sched_param
|
||||||
{
|
{
|
||||||
int sched_priority;
|
int sched_priority;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue