haiku/src/kernel/libroot/posix/pthread/pthread_private.h
Axel Dörfler c1705065da Doh, forget to add the license and author information.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3083 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-04-20 18:51:55 +00:00

29 lines
711 B
C

#ifndef _PTHREAD_PRIVATE_H_
#define _PTHREAD_PRIVATE_H_
/*
** Copyright 2003, Axel Dörfler, axeld@pinc-software.de. All rights reserved.
** Distributed under the terms of the OpenBeOS License.
*/
#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_ */