@@ -174,6 +174,11 @@ libc_support_library(
174
174
hdrs = ["hdr/types/time_t.h" ],
175
175
)
176
176
177
+ libc_support_library (
178
+ name = "types_pid_t" ,
179
+ hdrs = ["hdr/types/pid_t.h" ],
180
+ )
181
+
177
182
############################### Support libraries ##############################
178
183
179
184
libc_support_library (
@@ -1146,6 +1151,33 @@ libc_support_library(
1146
1151
],
1147
1152
)
1148
1153
1154
+ libc_support_library (
1155
+ name = "__support_threads_sleep" ,
1156
+ hdrs = ["src/__support/threads/sleep.h" ],
1157
+ )
1158
+
1159
+ libc_support_library (
1160
+ name = "__support_threads_raw_mutex" ,
1161
+ hdrs = [
1162
+ "src/__support/threads/linux/raw_mutex.h" ,
1163
+ ],
1164
+ defines = [
1165
+ "LIBC_COPT_TIMEOUT_ENSURE_MONOTONICITY" ,
1166
+ "LIBC_COPT_RAW_MUTEX_DEFAULT_SPIN_COUNT"
1167
+ ],
1168
+ target_compatible_with = select ({
1169
+ "@platforms//os:linux" : [],
1170
+ "//conditions:default" : ["@platforms//:incompatible" ],
1171
+ }),
1172
+ deps = [
1173
+ ":__support_cpp_optional" ,
1174
+ ":__support_time_linux" ,
1175
+ ":__support_threads_linux_futex_utils" ,
1176
+ ":__support_threads_sleep" ,
1177
+ ":types_pid_t" ,
1178
+ ],
1179
+ )
1180
+
1149
1181
libc_support_library (
1150
1182
name = "__support_threads_mutex" ,
1151
1183
hdrs = [
@@ -1163,6 +1195,8 @@ libc_support_library(
1163
1195
":__support_cpp_atomic" ,
1164
1196
":__support_osutil_syscall" ,
1165
1197
":__support_threads_linux_futex_utils" ,
1198
+ ":__support_threads_raw_mutex" ,
1199
+ ":types_pid_t" ,
1166
1200
],
1167
1201
)
1168
1202
0 commit comments