mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-07 02:48:06 +02:00
c11: Remove _MTX_INITIALIZER_NP as it's not used anymore
Signed-off-by: Yonggang Luo <luoyonggang@gmail.com> Acked-by: David Heidelberg <david.heidelberg@collabora.com> Acked-by: Eric Engestrom <eric@igalia.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/21284>
This commit is contained in:
parent
1a1a644d96
commit
6e1203bd0d
1 changed files with 0 additions and 12 deletions
|
|
@ -49,16 +49,6 @@
|
|||
|
||||
#if defined(HAVE_THRD_CREATE)
|
||||
#include <threads.h>
|
||||
|
||||
#if defined(ANDROID)
|
||||
/* Currently, only Android are verified that it's thrd_t are typedef of pthread_t
|
||||
* So we can define _MTX_INITIALIZER_NP to PTHREAD_MUTEX_INITIALIZER
|
||||
* FIXME: temporary non-standard hack to ease transition
|
||||
*/
|
||||
# define _MTX_INITIALIZER_NP PTHREAD_MUTEX_INITIALIZER
|
||||
#else
|
||||
#error Can not define _MTX_INITIALIZER_NP properly for this platform
|
||||
#endif
|
||||
#else
|
||||
|
||||
/*---------------------------- macros ---------------------------*/
|
||||
|
|
@ -129,8 +119,6 @@ typedef pthread_t thrd_t;
|
|||
typedef pthread_key_t tss_t;
|
||||
typedef pthread_mutex_t mtx_t;
|
||||
typedef pthread_once_t once_flag;
|
||||
// FIXME: temporary non-standard hack to ease transition
|
||||
# define _MTX_INITIALIZER_NP PTHREAD_MUTEX_INITIALIZER
|
||||
# define ONCE_FLAG_INIT PTHREAD_ONCE_INIT
|
||||
# ifdef PTHREAD_DESTRUCTOR_ITERATIONS
|
||||
# define TSS_DTOR_ITERATIONS PTHREAD_DESTRUCTOR_ITERATIONS
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue