Home | History | Annotate | Download | only in esan

Lines Matching defs:Thread

12 // Support for a separate or "sideline" tool thread on Linux.
36 // work in our non-POSIX thread?) to access our data in our signal handler
38 // sideline thread and we use a dirty solution of a global var.
47 SidelineThread *Thread = TheThread;
48 if (atomic_load(&Thread->SidelineExit, memory_order_relaxed) != 0)
50 Thread->sampleFunc(Thread->FuncArg);
64 VPrintf(1, "Sideline thread starting\n");
65 SidelineThread *Thread = static_cast<SidelineThread*>(Arg);
78 // We inherit the signal mask from the app thread. In case
87 bool TimerSuccess = Thread->adjustTimer(Thread->Freq);
94 if (!Thread->adjustTimer(0))
97 VPrintf(1, "Sideline thread exiting\n");
107 CHECK(TheThread == nullptr); // Only one sideline thread is supported.
116 // By omitting CLONE_THREAD, the child is in its own thread group and will not
125 Printf("FATAL: EfficiencySanitizer failed to spawn a thread (code %d).\n",
134 VPrintf(1, "Joining sideline thread\n");
144 VPrintf(1, "Failed to join sideline thread (errno %d)\n", ErrCode);
152 // Must be called from the sideline thread itself.
161 // As we're in a different thread group, we cannot use either