#include #include #include #include "thread_internal.h" struct _pthread_fastlock __thread_keys_lock; struct _thread_key __thread_keys[PTHREAD_KEYS_MAX]; void __thread_start__key(int id) { int i; __NO_ASYNC_CANCEL_BEGIN; __pthread_lock(&__thread_keys_lock); for (i=0; i