-
Notifications
You must be signed in to change notification settings - Fork 12k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[libc][docs] adds threads.h impl status docs #89275
[libc][docs] adds threads.h impl status docs #89275
Conversation
@llvm/pr-subscribers-libc Author: Michael Flanders (Flandini) ChangesCloses #88067. Adding @nickdesaulniers for review. Full diff: https://github.com/llvm/llvm-project/pull/89275.diff 3 Files Affected:
diff --git a/libc/docs/index.rst b/libc/docs/index.rst
index 11d5ae197d7189..f71920b058d83f 100644
--- a/libc/docs/index.rst
+++ b/libc/docs/index.rst
@@ -71,6 +71,7 @@ stages there is no ABI stability in any form.
c23
ctype
signal
+ threads
.. toctree::
:hidden:
diff --git a/libc/docs/threads.rst b/libc/docs/threads.rst
new file mode 100644
index 00000000000000..78e17e9fdec3aa
--- /dev/null
+++ b/libc/docs/threads.rst
@@ -0,0 +1,88 @@
+.. include:: check.rst
+
+threads.h Functions
+===================
+
+.. list-table::
+ :widths: auto
+ :align: center
+ :header-rows: 1
+
+ * - Function
+ - Implemented
+ - Standard
+ * - call_once
+ - |check|
+ - 7.28.2.1
+ * - cnd_broadcast
+ - |check|
+ - 7.28.3.1
+ * - cnd_destroy
+ - |check|
+ - 7.28.3.2
+ * - cnd_init
+ - |check|
+ - 7.28.3.3
+ * - cnd_signal
+ - |check|
+ - 7.28.3.4
+ * - cnd_timedwait
+ -
+ - 7.28.3.5
+ * - cnd_wait
+ - |check|
+ - 7.28.3.6
+ * - mtx_destroy
+ - |check|
+ - 7.28.4.1
+ * - mtx_init
+ - |check|
+ - 7.28.4.2
+ * - mtx_lock
+ - |check|
+ - 7.28.4.3
+ * - mtx_timedlock
+ -
+ - 7.28.4.4
+ * - mtx_trylock
+ -
+ - 7.28.4.5
+ * - mtx_unlock
+ - |check|
+ - 7.28.4.6
+ * - thrd_create
+ - |check|
+ - 7.28.5.1
+ * - thrd_current
+ - |check|
+ - 7.28.5.2
+ * - thrd_detach
+ - |check|
+ - 7.28.5.3
+ * - thrd_equal
+ - |check|
+ - 7.28.5.4
+ * - thrd_exit
+ - |check|
+ - 7.28.5.5
+ * - thrd_join
+ - |check|
+ - 7.28.5.6
+ * - thrd_sleep
+ -
+ - 7.28.5.7
+ * - thrd_yield
+ -
+ - 7.28.5.8
+ * - tss_create
+ - |check|
+ - 7.28.6.1
+ * - tss_delete
+ - |check|
+ - 7.28.6.2
+ * - tss_get
+ - |check|
+ - 7.28.6.3
+ * - tss_set
+ - |check|
+ - 7.28.6.4
diff --git a/libc/utils/docgen/threads.json b/libc/utils/docgen/threads.json
new file mode 100644
index 00000000000000..1e6b7cb4681fd4
--- /dev/null
+++ b/libc/utils/docgen/threads.json
@@ -0,0 +1,89 @@
+{
+ "macros": {
+ "ONCE_FLAG_INIT": {
+ "defined": "7.28.1.3",
+ "implemented": true
+ },
+ "TSS_DTOR_ITERATIONS": {
+ "defined": "7.28.1.3",
+ "implemented": false
+ }
+ },
+ "functions": {
+ "call_once": {
+ "defined": "7.28.2.1"
+ },
+ "cnd_broadcast": {
+ "defined": "7.28.3.1"
+ },
+ "cnd_destroy": {
+ "defined": "7.28.3.2"
+ },
+ "cnd_init": {
+ "defined": "7.28.3.3"
+ },
+ "cnd_signal": {
+ "defined": "7.28.3.4"
+ },
+ "cnd_timedwait": {
+ "defined": "7.28.3.5"
+ },
+ "cnd_wait": {
+ "defined": "7.28.3.6"
+ },
+ "mtx_destroy": {
+ "defined": "7.28.4.1"
+ },
+ "mtx_init": {
+ "defined": "7.28.4.2"
+ },
+ "mtx_lock": {
+ "defined": "7.28.4.3"
+ },
+ "mtx_timedlock": {
+ "defined": "7.28.4.4"
+ },
+ "mtx_trylock": {
+ "defined": "7.28.4.5"
+ },
+ "mtx_unlock": {
+ "defined": "7.28.4.6"
+ },
+ "thrd_create": {
+ "defined": "7.28.5.1"
+ },
+ "thrd_current": {
+ "defined": "7.28.5.2"
+ },
+ "thrd_detach": {
+ "defined": "7.28.5.3"
+ },
+ "thrd_equal": {
+ "defined": "7.28.5.4"
+ },
+ "thrd_exit": {
+ "defined": "7.28.5.5"
+ },
+ "thrd_join": {
+ "defined": "7.28.5.6"
+ },
+ "thrd_sleep": {
+ "defined": "7.28.5.7"
+ },
+ "thrd_yield": {
+ "defined": "7.28.5.8"
+ },
+ "tss_create": {
+ "defined": "7.28.6.1"
+ },
+ "tss_delete": {
+ "defined": "7.28.6.2"
+ },
+ "tss_get": {
+ "defined": "7.28.6.3"
+ },
+ "tss_set": {
+ "defined": "7.28.6.4"
+ }
+ }
+}
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Rest LGTM; thanks for filing this out!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
need us to merge this for you?
Closes #88067.
Adding @nickdesaulniers for review.