Skip to content

Commit bd0f818

Browse files
authored
[libc][docs] adds threads.h impl status docs (#89275)
Closes #88067. Adding @nickdesaulniers for review.
1 parent 2a2e21c commit bd0f818

File tree

3 files changed

+176
-0
lines changed

3 files changed

+176
-0
lines changed

libc/docs/index.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,7 @@ stages there is no ABI stability in any form.
7171
c23
7272
ctype
7373
signal
74+
threads
7475

7576
.. toctree::
7677
:hidden:

libc/docs/threads.rst

Lines changed: 88 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,88 @@
1+
.. include:: check.rst
2+
3+
threads.h Functions
4+
===================
5+
6+
.. list-table::
7+
:widths: auto
8+
:align: center
9+
:header-rows: 1
10+
11+
* - Function
12+
- Implemented
13+
- Standard
14+
* - call_once
15+
- |check|
16+
- 7.28.2.1
17+
* - cnd_broadcast
18+
- |check|
19+
- 7.28.3.1
20+
* - cnd_destroy
21+
- |check|
22+
- 7.28.3.2
23+
* - cnd_init
24+
- |check|
25+
- 7.28.3.3
26+
* - cnd_signal
27+
- |check|
28+
- 7.28.3.4
29+
* - cnd_timedwait
30+
-
31+
- 7.28.3.5
32+
* - cnd_wait
33+
- |check|
34+
- 7.28.3.6
35+
* - mtx_destroy
36+
- |check|
37+
- 7.28.4.1
38+
* - mtx_init
39+
- |check|
40+
- 7.28.4.2
41+
* - mtx_lock
42+
- |check|
43+
- 7.28.4.3
44+
* - mtx_timedlock
45+
-
46+
- 7.28.4.4
47+
* - mtx_trylock
48+
-
49+
- 7.28.4.5
50+
* - mtx_unlock
51+
- |check|
52+
- 7.28.4.6
53+
* - thrd_create
54+
- |check|
55+
- 7.28.5.1
56+
* - thrd_current
57+
- |check|
58+
- 7.28.5.2
59+
* - thrd_detach
60+
- |check|
61+
- 7.28.5.3
62+
* - thrd_equal
63+
- |check|
64+
- 7.28.5.4
65+
* - thrd_exit
66+
- |check|
67+
- 7.28.5.5
68+
* - thrd_join
69+
- |check|
70+
- 7.28.5.6
71+
* - thrd_sleep
72+
-
73+
- 7.28.5.7
74+
* - thrd_yield
75+
-
76+
- 7.28.5.8
77+
* - tss_create
78+
- |check|
79+
- 7.28.6.1
80+
* - tss_delete
81+
- |check|
82+
- 7.28.6.2
83+
* - tss_get
84+
- |check|
85+
- 7.28.6.3
86+
* - tss_set
87+
- |check|
88+
- 7.28.6.4

libc/utils/docgen/threads.json

Lines changed: 87 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,87 @@
1+
{
2+
"macros": {
3+
"ONCE_FLAG_INIT": {
4+
"defined": "7.28.1.3"
5+
},
6+
"TSS_DTOR_ITERATIONS": {
7+
"defined": "7.28.1.3"
8+
}
9+
},
10+
"functions": {
11+
"call_once": {
12+
"defined": "7.28.2.1"
13+
},
14+
"cnd_broadcast": {
15+
"defined": "7.28.3.1"
16+
},
17+
"cnd_destroy": {
18+
"defined": "7.28.3.2"
19+
},
20+
"cnd_init": {
21+
"defined": "7.28.3.3"
22+
},
23+
"cnd_signal": {
24+
"defined": "7.28.3.4"
25+
},
26+
"cnd_timedwait": {
27+
"defined": "7.28.3.5"
28+
},
29+
"cnd_wait": {
30+
"defined": "7.28.3.6"
31+
},
32+
"mtx_destroy": {
33+
"defined": "7.28.4.1"
34+
},
35+
"mtx_init": {
36+
"defined": "7.28.4.2"
37+
},
38+
"mtx_lock": {
39+
"defined": "7.28.4.3"
40+
},
41+
"mtx_timedlock": {
42+
"defined": "7.28.4.4"
43+
},
44+
"mtx_trylock": {
45+
"defined": "7.28.4.5"
46+
},
47+
"mtx_unlock": {
48+
"defined": "7.28.4.6"
49+
},
50+
"thrd_create": {
51+
"defined": "7.28.5.1"
52+
},
53+
"thrd_current": {
54+
"defined": "7.28.5.2"
55+
},
56+
"thrd_detach": {
57+
"defined": "7.28.5.3"
58+
},
59+
"thrd_equal": {
60+
"defined": "7.28.5.4"
61+
},
62+
"thrd_exit": {
63+
"defined": "7.28.5.5"
64+
},
65+
"thrd_join": {
66+
"defined": "7.28.5.6"
67+
},
68+
"thrd_sleep": {
69+
"defined": "7.28.5.7"
70+
},
71+
"thrd_yield": {
72+
"defined": "7.28.5.8"
73+
},
74+
"tss_create": {
75+
"defined": "7.28.6.1"
76+
},
77+
"tss_delete": {
78+
"defined": "7.28.6.2"
79+
},
80+
"tss_get": {
81+
"defined": "7.28.6.3"
82+
},
83+
"tss_set": {
84+
"defined": "7.28.6.4"
85+
}
86+
}
87+
}

0 commit comments

Comments
 (0)