for (info = self->p_readlock_list; info != NULL; info = info->pr_next)
for (info = THREAD_GETMEM (self, p_readlock_list); info != NULL; info = info->pr_next)
rwlock_is_in_list(pthread_descr self, pthread_rwlock_t *rwlock){  pthread_readlock_info *info;  for (info = self->p_readlock_list; info != NULL; info = info->pr_next)    {      if (info->pr_lock == rwlock)	return info;    }  return NULL;}