mirror of
git://gcc.gnu.org/git/gcc.git
synced 2025-03-31 23:41:01 +08:00
gthr-posix.h: Remove duplicate __GTHREAD_MUTEX_INIT_FUNCTION and...
2012-03-13 Richard Guenther <rguenther@suse.de> * gthr-posix.h: Remove duplicate __GTHREAD_MUTEX_INIT_FUNCTION and __gthread_mutex_init_function definitions. From-SVN: r185320
This commit is contained in:
parent
6c2f0f83a5
commit
074a385f07
@ -1,3 +1,8 @@
|
||||
2012-03-13 Richard Guenther <rguenther@suse.de>
|
||||
|
||||
* gthr-posix.h: Remove duplicate __GTHREAD_MUTEX_INIT_FUNCTION
|
||||
and __gthread_mutex_init_function definitions.
|
||||
|
||||
2012-03-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
|
||||
|
||||
* config.host (mips*-*-openbsd*): Remove.
|
||||
|
@ -72,7 +72,6 @@ typedef struct timespec __gthread_time_t;
|
||||
|
||||
#ifdef _GTHREAD_USE_MUTEX_INIT_FUNC
|
||||
# undef __GTHREAD_MUTEX_INIT
|
||||
# define __GTHREAD_MUTEX_INIT_FUNCTION __gthread_mutex_init_function
|
||||
#endif
|
||||
#ifdef _GTHREAD_USE_RECURSIVE_MUTEX_INIT_FUNC
|
||||
# undef __GTHREAD_RECURSIVE_MUTEX_INIT
|
||||
@ -702,22 +701,12 @@ __gthread_setspecific (__gthread_key_t __key, const void *__ptr)
|
||||
return __gthrw_(pthread_setspecific) (__key, __ptr);
|
||||
}
|
||||
|
||||
#ifdef _GTHREAD_USE_MUTEX_INIT_FUNC
|
||||
static inline void
|
||||
__gthread_mutex_init_function (__gthread_mutex_t *__mutex)
|
||||
{
|
||||
if (__gthread_active_p ())
|
||||
__gthrw_(pthread_mutex_init) (__mutex, NULL);
|
||||
}
|
||||
#endif
|
||||
|
||||
static inline int
|
||||
__gthread_mutex_init_function (__gthread_mutex_t *__mutex)
|
||||
{
|
||||
if (__gthread_active_p ())
|
||||
return __gthrw_(pthread_mutex_init) (__mutex, NULL);
|
||||
return 0;
|
||||
}
|
||||
|
||||
static inline int
|
||||
__gthread_mutex_destroy (__gthread_mutex_t *__mutex)
|
||||
|
Loading…
x
Reference in New Issue
Block a user