Ignore:
Timestamp:
May 23, 2019, 12:45:39 AM (5 years ago)
Author:
coas-nagasima
Message:

コードを整理

File:
1 edited

Legend:

Unmodified
Added
Removed
  • azure_iot_hub/trunk/musl-1.1.18/src/thread/pthread_create.c

    r389 r390  
    1414{
    1515}
    16 #ifndef __c2__
    1716weak_alias(dummy_0, __acquire_ptc);
    1817weak_alias(dummy_0, __release_ptc);
    19 #else
    20 extern void __acquire_ptc();
    21 extern void __release_ptc();
    22 #endif
    2318weak_alias(dummy_0, __pthread_tsd_run_dtors);
    2419weak_alias(dummy_0, __do_orphaned_stdio_locks);
     
    168163
    169164/* pthread_key_create.c overrides this */
    170 #ifndef __c2__
    171165static volatile size_t dummy = 0;
    172166weak_alias(dummy, __pthread_tsd_size);
    173167static void *dummy_tsd[1] = { 0 };
    174168weak_alias(dummy_tsd, __pthread_tsd_main);
    175 #else
    176 extern volatile size_t __pthread_tsd_size;
    177 extern void *__pthread_tsd_main;
    178 #endif
    179169
    180170volatile int __block_new_threads = 0;
     
    182172size_t __default_guardsize = DEFAULT_GUARD_SIZE;
    183173
    184 #ifndef __c2__
    185174static FILE *volatile dummy_file = 0;
    186175weak_alias(dummy_file, __stdin_used);
    187176weak_alias(dummy_file, __stdout_used);
    188177weak_alias(dummy_file, __stderr_used);
    189 #else
    190 extern FILE *volatile __stdin_used;
    191 extern FILE *volatile __stdout_used;
    192 extern FILE *volatile __stderr_used;
    193 #endif
    194178
    195179static void init_file_lock(FILE *f)
     
    329313}
    330314
    331 #ifndef __c2__
    332315weak_alias(__pthread_exit, pthread_exit);
    333316weak_alias(__pthread_create, pthread_create);
    334 #else
    335 _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.