HomeSort by relevance Sort by last modified time
    Searched refs:key_destructor (Results 1 - 3 of 3) sorted by null

  /external/compiler-rt/test/lsan/TestCases/
cleanup_in_tsd_destructor.c 21 void key_destructor(void *arg) { function
35 int res = pthread_key_create(&key, &key_destructor);
disabler_in_tsd_destructor.c 15 void key_destructor(void *arg) { function
31 int res = pthread_key_create(&key, &key_destructor);
  /bionic/libc/bionic/
pthread_key.cpp 48 // key_destructor records the destructor called at thread exit.
51 atomic_uintptr_t key_destructor; member in struct:pthread_key_internal_t
83 // is exiting. So we need to ensure we read the right key_destructor.
85 // use of pthread key to ensure that we're not getting an earlier key_destructor.
86 // To avoid using the key_destructor of the newly created key in the same slot, we need to
87 // recheck the sequence number after reading key_destructor. As a result, we either see the
88 // right key_destructor, or the sequence number must have changed when we reread it below.
89 key_destructor_t key_destructor = reinterpret_cast<key_destructor_t>( variable
90 atomic_load_explicit(&key_map[i].key_destructor, memory_order_relaxed));
91 if (key_destructor == NULL)
    [all...]

Completed in 84 milliseconds