Lines Matching refs:destr_fn
116 // When destr_fn eventually runs, it's supposed to take as its
119 // store the destr_fn/key pair in this data structure. Because we
121 // destr_fn in a program! That's enough in practice. If asserts
125 void (*destr_fn)(void*);
132 if (destr_fn_info.destr_fn) {
139 (*destr_fn_info.destr_fn)(ptr);
179 extern "C" pthread_key_t PthreadKeyCreate(void (*destr_fn)(void*)) {
181 // destr_fn with TlsGetValue(key) when the thread is destroyed
184 if (destr_fn) { // register it
186 assert(destr_fn_info.destr_fn == NULL);
187 destr_fn_info.destr_fn = destr_fn;