mutex.c (509a48ff) | mutex.c (bbe1f9bf) |
---|---|
1/************************************************************** 2 * 3 * Licensed to the Apache Software Foundation (ASF) under one 4 * or more contributor license agreements. See the NOTICE file 5 * distributed with this work for additional information 6 * regarding copyright ownership. The ASF licenses this file 7 * to you under the Apache License, Version 2.0 (the 8 * "License"); you may not use this file except in compliance --- 16 unchanged lines hidden (view full) --- 25 26#include <osl/mutex.h> 27#include <osl/diagnose.h> 28 29#include <pthread.h> 30#include <stdlib.h> 31 32#if defined LINUX /* bad hack */ | 1/************************************************************** 2 * 3 * Licensed to the Apache Software Foundation (ASF) under one 4 * or more contributor license agreements. See the NOTICE file 5 * distributed with this work for additional information 6 * regarding copyright ownership. The ASF licenses this file 7 * to you under the Apache License, Version 2.0 (the 8 * "License"); you may not use this file except in compliance --- 16 unchanged lines hidden (view full) --- 25 26#include <osl/mutex.h> 27#include <osl/diagnose.h> 28 29#include <pthread.h> 30#include <stdlib.h> 31 32#if defined LINUX /* bad hack */ |
33#if !defined(__USE_XOPEN2K8) |
|
33int pthread_mutexattr_setkind_np(pthread_mutexattr_t *, int); 34#define pthread_mutexattr_settype pthread_mutexattr_setkind_np 35#define PTHREAD_MUTEX_RECURSIVE PTHREAD_MUTEX_RECURSIVE_NP 36#endif | 34int pthread_mutexattr_setkind_np(pthread_mutexattr_t *, int); 35#define pthread_mutexattr_settype pthread_mutexattr_setkind_np 36#define PTHREAD_MUTEX_RECURSIVE PTHREAD_MUTEX_RECURSIVE_NP 37#endif |
38#endif |
|
37 38/* 39 Implementation notes: 40 oslMutex hides a pointer to the oslMutexImpl structure, which 41 ist needed to manage recursive locks on a mutex. 42 43*/ 44 --- 173 unchanged lines hidden --- | 39 40/* 41 Implementation notes: 42 oslMutex hides a pointer to the oslMutexImpl structure, which 43 ist needed to manage recursive locks on a mutex. 44 45*/ 46 --- 173 unchanged lines hidden --- |