- Timestamp:
- May 23, 2019, 12:45:39 AM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
azure_iot_hub/trunk/musl-1.1.18/src/thread/pthread_create.c
r389 r390 14 14 { 15 15 } 16 #ifndef __c2__17 16 weak_alias(dummy_0, __acquire_ptc); 18 17 weak_alias(dummy_0, __release_ptc); 19 #else20 extern void __acquire_ptc();21 extern void __release_ptc();22 #endif23 18 weak_alias(dummy_0, __pthread_tsd_run_dtors); 24 19 weak_alias(dummy_0, __do_orphaned_stdio_locks); … … 168 163 169 164 /* pthread_key_create.c overrides this */ 170 #ifndef __c2__171 165 static volatile size_t dummy = 0; 172 166 weak_alias(dummy, __pthread_tsd_size); 173 167 static void *dummy_tsd[1] = { 0 }; 174 168 weak_alias(dummy_tsd, __pthread_tsd_main); 175 #else176 extern volatile size_t __pthread_tsd_size;177 extern void *__pthread_tsd_main;178 #endif179 169 180 170 volatile int __block_new_threads = 0; … … 182 172 size_t __default_guardsize = DEFAULT_GUARD_SIZE; 183 173 184 #ifndef __c2__185 174 static FILE *volatile dummy_file = 0; 186 175 weak_alias(dummy_file, __stdin_used); 187 176 weak_alias(dummy_file, __stdout_used); 188 177 weak_alias(dummy_file, __stderr_used); 189 #else190 extern FILE *volatile __stdin_used;191 extern FILE *volatile __stdout_used;192 extern FILE *volatile __stderr_used;193 #endif194 178 195 179 static void init_file_lock(FILE *f) … … 329 313 } 330 314 331 #ifndef __c2__332 315 weak_alias(__pthread_exit, pthread_exit); 333 316 weak_alias(__pthread_create, pthread_create); 334 #else335 _Noreturn void pthread_exit(void *result)336 {337 __pthread_exit(result);338 }339 340 int pthread_create(pthread_t *restrict res, const pthread_attr_t *restrict attrp, void *(*entry)(void *), void *restrict arg)341 {342 return __pthread_create(res, attrp, entry, arg);343 }344 #endif
Note:
See TracChangeset
for help on using the changeset viewer.