[libc-commits] [libc] [libc] add rwlock (PR #94156)
Michael Jones via libc-commits
libc-commits at lists.llvm.org
Wed Jun 12 10:57:23 PDT 2024
================
@@ -0,0 +1,26 @@
+//===-- Definition of pthread_mutex_t type --------------------------------===//
+//
+// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
+// See https://llvm.org/LICENSE.txt for license information.
+// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
+//
+//===----------------------------------------------------------------------===//
+
+#ifndef LLVM_LIBC_TYPES_PTHREAD_RWLOCK_T_H
+#define LLVM_LIBC_TYPES_PTHREAD_RWLOCK_T_H
+
+#include "llvm-libc-types/__futex_word.h"
+#include "llvm-libc-types/pid_t.h"
+typedef struct {
+ unsigned __is_pshared : 1;
+ unsigned __preference : 1;
+ int __state;
+ pid_t __writier_tid;
----------------
michaelrj-google wrote:
nit: `writier` -> `writer`
https://github.com/llvm/llvm-project/pull/94156
More information about the libc-commits
mailing list