[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-changelog] [xen-unstable] stubdom: add dummy pthread_mutexattr*
# HG changeset patch # User Keir Fraser <keir.fraser@xxxxxxxxxx> # Date 1219826709 -3600 # Node ID ac9e7df89a8eb3a36b52411524a76cb6ad6a4df2 # Parent 9818c7099e20aa33ace90a169ff81844685637b0 stubdom: add dummy pthread_mutexattr* Signed-off-by: Samuel Thibault <samuel.thibault@xxxxxxxxxxxxx> --- extras/mini-os/include/posix/pthread.h | 7 +++++++ 1 files changed, 7 insertions(+) diff -r 9818c7099e20 -r ac9e7df89a8e extras/mini-os/include/posix/pthread.h --- a/extras/mini-os/include/posix/pthread.h Wed Aug 27 09:44:51 2008 +0100 +++ b/extras/mini-os/include/posix/pthread.h Wed Aug 27 09:45:09 2008 +0100 @@ -31,8 +31,15 @@ static inline int pthread_key_delete(pth +typedef struct {} pthread_mutexattr_t; +static inline int pthread_mutexattr_init(pthread_mutexattr_t *mattr) { return 0; } +#define PTHREAD_MUTEX_NORMAL 0 +#define PTHREAD_MUTEX_RECURSIVE 1 +static inline int pthread_mutexattr_settype(pthread_mutexattr_t *mattr, int kind) { return 0; } +static inline int pthread_mutexattr_destroy(pthread_mutexattr_t *mattr) { return 0; } typedef struct {} pthread_mutex_t; #define PTHREAD_MUTEX_INITIALIZER {} +static inline int pthread_mutex_init(pthread_mutex_t *mutex, pthread_mutexattr_t *mattr) { return 0; } static inline int pthread_mutex_lock(pthread_mutex_t *mutex) { return 0; } static inline int pthread_mutex_unlock(pthread_mutex_t *mutex) { return 0; } _______________________________________________ Xen-changelog mailing list Xen-changelog@xxxxxxxxxxxxxxxxxxx http://lists.xensource.com/xen-changelog
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |