@@ -1247,73 +1247,30 @@ def get_files(self):
12471247 'pthread_self_stub.c' ,
12481248 'proxying_stub.c' ,
12491249 ])
1250+
1251+ for pat in ('pthread_*attr*.c' ,
1252+ 'pthread_spin*.c' ,
1253+ # C11 thread library functions
1254+ 'cnd_*.c' ,
1255+ 'mtx_*.c' ,
1256+ 'tss_*.c' ,
1257+ 'thrd_*.c' ):
1258+ libc_files += glob_in_path ('system/lib/libc/musl/src/thread' , pat )
1259+
12501260 libc_files += files_in_path (
12511261 path = 'system/lib/libc/musl/src/thread' ,
12521262 filenames = [
12531263 'pthread_self.c' ,
12541264 'pthread_cleanup_push.c' ,
1255- 'pthread_attr_init.c' ,
1256- 'pthread_attr_destroy.c' ,
1257- 'pthread_attr_get.c' ,
1258- 'pthread_attr_setdetachstate.c' ,
1259- 'pthread_attr_setguardsize.c' ,
1260- 'pthread_attr_setinheritsched.c' ,
1261- 'pthread_attr_setschedparam.c' ,
1262- 'pthread_attr_setschedpolicy.c' ,
1263- 'pthread_attr_setscope.c' ,
1264- 'pthread_attr_setstack.c' ,
1265- 'pthread_attr_setstacksize.c' ,
1266- 'pthread_barrierattr_destroy.c' ,
1267- 'pthread_barrierattr_init.c' ,
1268- 'pthread_barrierattr_setpshared.c' ,
1269- 'pthread_condattr_destroy.c' ,
1270- 'pthread_condattr_init.c' ,
1271- 'pthread_condattr_setpshared.c' ,
1272- 'pthread_condattr_setclock.c' ,
1273- 'pthread_mutexattr_destroy.c' ,
1274- 'pthread_mutexattr_init.c' ,
1275- 'pthread_mutexattr_setprotocol.c' ,
1276- 'pthread_mutexattr_settype.c' ,
1277- 'pthread_mutexattr_setpshared.c' ,
1278- 'pthread_rwlockattr_destroy.c' ,
1279- 'pthread_rwlockattr_init.c' ,
1280- 'pthread_rwlockattr_setpshared.c' ,
1281- 'pthread_getattr_np.c' ,
12821265 'pthread_getconcurrency.c' ,
12831266 'pthread_getcpuclockid.c' ,
12841267 'pthread_getschedparam.c' ,
1285- 'pthread_spin_destroy.c' ,
1286- 'pthread_spin_init.c' ,
1287- 'pthread_spin_lock.c' ,
1288- 'pthread_spin_trylock.c' ,
1289- 'pthread_spin_unlock.c' ,
12901268 'pthread_setschedprio.c' ,
12911269 'pthread_setconcurrency.c' ,
12921270 'default_attr.c' ,
1293- # C11 thread library functions
12941271 'call_once.c' ,
1295- 'tss_create.c' ,
1296- 'tss_delete.c' ,
1297- 'tss_set.c' ,
1298- 'cnd_broadcast.c' ,
1299- 'cnd_destroy.c' ,
1300- 'cnd_init.c' ,
1301- 'cnd_signal.c' ,
1302- 'cnd_timedwait.c' ,
1303- 'cnd_wait.c' ,
1304- 'mtx_destroy.c' ,
1305- 'mtx_init.c' ,
1306- 'mtx_lock.c' ,
1307- 'mtx_timedlock.c' ,
1308- 'mtx_trylock.c' ,
1309- 'mtx_unlock.c' ,
13101272 'sem_destroy.c' ,
13111273 'sem_init.c' ,
1312- 'thrd_create.c' ,
1313- 'thrd_exit.c' ,
1314- 'thrd_join.c' ,
1315- 'thrd_sleep.c' ,
1316- 'thrd_yield.c' ,
13171274 ])
13181275
13191276 if self .is_mt or self .is_ww :
0 commit comments