74b016ecad
will come in handy for the glibc stuff - and is great for our libroot.so, too. Everything should work except for: pthread_mutexattr_(set|get)prioceiling/ protocol(). That might be added at a later time, though, I don't consider it a high priority. git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3082 a95241bf-73f2-0310-859d-f6bbb57e9c96
25 lines
569 B
C
25 lines
569 B
C
#ifndef _PTHREAD_PRIVATE_H_
|
|
#define _PTHREAD_PRIVATE_H_
|
|
|
|
#include <OS.h>
|
|
|
|
// The public *_t types are only pointers to these structures
|
|
// This way, we are completely free to change them, which might be
|
|
// necessary in the future (not only due to the incomplete implementation
|
|
// at this point).
|
|
|
|
typedef struct _pthread_mutexattr {
|
|
int32 type;
|
|
bool process_shared;
|
|
} pthread_mutexattr;
|
|
|
|
typedef struct _pthread_mutex {
|
|
vint32 count;
|
|
sem_id sem;
|
|
thread_id owner;
|
|
int32 owner_count;
|
|
pthread_mutexattr attr;
|
|
} pthread_mutex;
|
|
|
|
#endif /* _PTHREAD_PRIVATE_H_ */
|