Warning: This file is not a C or C++ file. It does not have highlighting.
| 1 | //===-- Definition of pthread_mutex_t type --------------------------------===// |
|---|---|
| 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 | //===----------------------------------------------------------------------===// |
| 8 | |
| 9 | #ifndef LLVM_LIBC_TYPES_PTHREAD_RWLOCK_T_H |
| 10 | #define LLVM_LIBC_TYPES_PTHREAD_RWLOCK_T_H |
| 11 | |
| 12 | #include "__futex_word.h" |
| 13 | #include "pid_t.h" |
| 14 | typedef struct { |
| 15 | unsigned __is_pshared : 1; |
| 16 | unsigned __preference : 1; |
| 17 | int __state; |
| 18 | pid_t __writer_tid; |
| 19 | __futex_word __wait_queue_mutex; |
| 20 | __futex_word __pending_readers; |
| 21 | __futex_word __pending_writers; |
| 22 | __futex_word __reader_serialization; |
| 23 | __futex_word __writer_serialization; |
| 24 | } pthread_rwlock_t; |
| 25 | |
| 26 | #endif // LLVM_LIBC_TYPES_PTHREAD_RWLOCK_T_H |
| 27 |
Warning: This file is not a C or C++ file. It does not have highlighting.
