[libcxx-commits] [libcxx] [libc++] add shared_recursive_mutex api (PR #82466)
A. Jiang via libcxx-commits
libcxx-commits at lists.llvm.org
Tue Feb 27 00:21:45 PST 2024
================
@@ -0,0 +1,61 @@
+#ifndef _SHARED_RECURSIVE_MUTEX_
+#define _SHARED_RECURSIVE_MUTEX_
+
+#include <cstdint>
+#include <mutex>
+#include <condition_variable>
+#include <thread>
+#include <shared_mutex>
----------------
frederick-vs-ja wrote:
We should use some divided internal headers. I don't see why `<shared_mutex>` should be included here.
```suggestion
#include <__condition_variable/condition_variable.h>
#include <__mutex/mutex.h>
#include <__thread/id.h>
#include <cstdint>
```
https://github.com/llvm/llvm-project/pull/82466
More information about the libcxx-commits
mailing list