[flang] Use object before converts in fir.dispatch (#68589)
[llvm-project.git] / libc / include / pthread.h.def
blob391ecd3c124f2b50cb04b3951f99a23588d41ef1
1 //===-- POSIX header pthread.h --------------------------------------------===//
2 //
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
6 //
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}
19 enum {
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,
35 %%public_api()
37 #endif // LLVM_LIBC_PTHREAD_H