Changeset View
Changeset View
Standalone View
Standalone View
lib/libthr/thread/thr_private.h
Show First 20 Lines • Show All 566 Lines • ▼ Show 20 Lines | |||||
#define _pthread_endzero wake_addr | #define _pthread_endzero wake_addr | ||||
struct wake_addr *wake_addr; | struct wake_addr *wake_addr; | ||||
#define WAKE_ADDR(td) ((td)->wake_addr) | #define WAKE_ADDR(td) ((td)->wake_addr) | ||||
/* Sleep queue */ | /* Sleep queue */ | ||||
struct sleepqueue *sleepqueue; | struct sleepqueue *sleepqueue; | ||||
/* pthread_set/get_name_np */ | |||||
char *name; | |||||
}; | }; | ||||
#define THR_SHOULD_GC(thrd) \ | #define THR_SHOULD_GC(thrd) \ | ||||
((thrd)->refcount == 0 && (thrd)->state == PS_DEAD && \ | ((thrd)->refcount == 0 && (thrd)->state == PS_DEAD && \ | ||||
((thrd)->flags & THR_FLAGS_DETACHED) != 0) | ((thrd)->flags & THR_FLAGS_DETACHED) != 0) | ||||
#define THR_IN_CRITICAL(thrd) \ | #define THR_IN_CRITICAL(thrd) \ | ||||
(((thrd)->locklevel > 0) || \ | (((thrd)->locklevel > 0) || \ | ||||
▲ Show 20 Lines • Show All 431 Lines • Show Last 20 Lines |