static void dump_locks(FILE *fp=stdout);
static void dump_buffers(FILE *fp=stdout);
static void dump_threads(FILE *fp=stdout);
static void dump_locks(FILE *fp=stdout);
static void dump_buffers(FILE *fp=stdout);
static void dump_threads(FILE *fp=stdout);
pthread_mutexattr_t attr;
pthread_mutexattr_init(&attr);
pthread_mutex_init(&the_lock, &attr);
}
pthread_mutexattr_t attr;
pthread_mutexattr_init(&attr);
pthread_mutex_init(&the_lock, &attr);
}
static void dump_threads(FILE *fp);
static void dbg_add(pthread_t tid, pthread_t owner, const char *nm);
static void dbg_del(pthread_t tid);
static void dump_threads(FILE *fp);
static void dbg_add(pthread_t tid, pthread_t owner, const char *nm);
static void dbg_del(pthread_t tid);
if( !i ) return;
printf("unjoined tids / owner %d\n", i);
while( --i >= 0 ) printf(" %016lx / %016lx %s\n",
if( !i ) return;
printf("unjoined tids / owner %d\n", i);
while( --i >= 0 ) printf(" %016lx / %016lx %s\n",
- (unsigned long)TheList::the_list[i]->tid,
- (unsigned long)TheList::the_list[i]->owner,
- TheList::the_list[i]->name);
+ (unsigned long)the_list[i]->tid,
+ (unsigned long)the_list[i]->owner,
+ the_list[i]->name);