[flang] Accept polymorphic component element in storage_size
[llvm-project.git] / libc / include / pthread.h.def
blob18352c053938a252de539de01b5ed3cbfb4ed6f2
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_ONCE_INIT {0}
18 enum {
19 PTHREAD_CREATE_JOINABLE = 0x0,
20 PTHREAD_CREATE_DETACHED = 0x1,
22 PTHREAD_MUTEX_NORMAL = 0x0,
23 PTHREAD_MUTEX_ERRORCHECK = 0x1,
24 PTHREAD_MUTEX_RECURSIVE = 0x2,
25 PTHREAD_MUTEX_DEFAULT = PTHREAD_MUTEX_NORMAL,
27 PTHREAD_PROCESS_PRIVATE = 0x0,
28 PTHREAD_PROCESS_SHARED = 0x1,
30 PTHREAD_MUTEX_STALLED = 0x0,
31 PTHREAD_MUTEX_ROBUST = 0x1,
34 %%public_api()
36 #endif // LLVM_LIBC_PTHREAD_H