/* Check that tid is in range and denotes a non-Empty thread. */
extern Bool VG_(is_valid_tid) ( ThreadId tid );
-/* Check that tid is in range. */
-extern Bool VG_(is_valid_or_empty_tid) ( ThreadId tid );
-
/* Determine if 'tid' is that of the current running thread (Nb: returns
False if no thread is currently running. */
extern Bool VG_(is_running_thread)(ThreadId tid);
__inline__
-Bool VG_(is_valid_or_empty_tid) ( ThreadId tid )
+Bool is_valid_or_empty_tid ( ThreadId tid )
{
/* tid is unsigned, hence no < 0 test. */
if (tid == 0) return False;
static
void cleanup_after_thread_exited ( ThreadId tid, Bool forcekill )
{
- vg_assert(VG_(is_valid_or_empty_tid)(tid));
+ vg_assert(is_valid_or_empty_tid(tid));
vg_assert(VG_(threads)[tid].status == VgTs_Empty);
/* Its stack is now off-limits */
VG_TRACK( die_mem_stack, VG_(threads)[tid].stack_base,
/* If we've created the main thread's tid, we're in deep trouble :) */
vg_assert(tid != 1);
- vg_assert(VG_(is_valid_or_empty_tid)(tid));
+ vg_assert(is_valid_or_empty_tid(tid));
/* do this early, before the child gets any memory writes */
VG_TRACK ( post_thread_create, parent_tid, tid );
print_pthread_event(tid, msg_buf);
}
- vg_assert(VG_(is_valid_or_empty_tid)(tid));
+ vg_assert(is_valid_or_empty_tid(tid));
if (VG_(threads)[tid].status == VgTs_Empty) {
SET_PTHREQ_RETVAL(tid, 1);
for(top = timeouts; top != NULL; top = top->next) {
vg_assert(top->time >= lasttime);
- vg_assert(VG_(is_valid_or_empty_tid)(top->tid));
+ vg_assert(is_valid_or_empty_tid(top->tid));
#if 0
/* assert timeout entry is either stale, or associated with a