1 //===-- POSIX header pthread.h
--------------------------------------------===//
3 // Part of the LLVM Project
, under the Apache License v2.0 with LLVM Exceptions.
4 // See https
://llvm.org
/LICENSE.txt for license information.
5 // SPDX
-License
-Identifier
: Apache
-2.0 WITH LLVM
-exception
7 //===----------------------------------------------------------------------===//
9 #ifndef LLVM_LIBC_PTHREAD_H
10 #define LLVM_LIBC_PTHREAD_H
12 #include
<__llvm
-libc
-common.h
>
14 #define
PTHREAD_STACK_MIN (1 << 14) // 16KB
16 #define PTHREAD_MUTEX_INITIALIZER
{0}
17 #define PTHREAD_ONCE_INIT
{0}
20 PTHREAD_CREATE_JOINABLE
= 0x0,
21 PTHREAD_CREATE_DETACHED
= 0x1,
23 PTHREAD_MUTEX_NORMAL
= 0x0,
24 PTHREAD_MUTEX_ERRORCHECK
= 0x1,
25 PTHREAD_MUTEX_RECURSIVE
= 0x2,
26 PTHREAD_MUTEX_DEFAULT
= PTHREAD_MUTEX_NORMAL
,
28 PTHREAD_PROCESS_PRIVATE
= 0x0,
29 PTHREAD_PROCESS_SHARED
= 0x1,
31 PTHREAD_MUTEX_STALLED
= 0x0,
32 PTHREAD_MUTEX_ROBUST
= 0x1,
37 #endif
// LLVM_LIBC_PTHREAD_H