void (*cancelpt)(int);
void (*lock)(volatile int *);
void (*lockfile)(FILE *);
- void (**tsd_keys)(void *);
+ void (*fork_handler)(int);
void (*sigtimer)();
int (*atexit)(void (*)(void));
void (*fini)(void);
volatile int threads_minus_1;
int ofl_lock;
int (*rsyscall)(int, long, long, long, long, long, long);
- void (*fork_handler)(int);
FILE *ofl_head;
};
unsigned j = i;
pthread_self();
- libc.tsd_keys = keys;
if (!dtor) dtor = nodtor;
do {
if (!a_cas_p(keys+j, 0, dtor)) {
return EAGAIN;
}
+int pthread_key_delete(pthread_key_t k)
+{
+ keys[k] = 0;
+ return 0;
+}
+
void __pthread_tsd_run_dtors(pthread_t self)
{
int i, j, not_finished = self->tsd_used;