fControlThread
thread_id fControlThread;
if (fControlThread > 0) {
set_thread_priority(fControlThread, fCurrentPriority);
fSchedulingLatency = estimate_max_scheduling_latency(fControlThread);
fSchedulingLatency = estimate_max_scheduling_latency(fControlThread);
return fControlThread;
if (fControlThread > 0) {
set_thread_priority(fControlThread, fCurrentPriority);
fSchedulingLatency = estimate_max_scheduling_latency(fControlThread);
if (fControlThread != -1)
fControlThread = spawn_thread(_ControlThreadStart, threadName, fCurrentPriority, this);
resume_thread(fControlThread);
fSchedulingLatency = estimate_max_scheduling_latency(fControlThread);
if (fControlThread != -1) {
wait_for_thread(fControlThread, &err);
fControlThread = -1;
if (fControlThread != -1) {
fControlThread(-1),
const thread_id fControlThread;
fControlThread(spawn_thread(ControlThreadFunc, "http:control", B_NORMAL_PRIORITY, this)),
if (fControlThread < 0)
if (resume_thread(fControlThread) != B_OK)
wait_for_thread(fControlThread, &threadResult);
fControlThread = spawn_thread(_ControlThread, "media_server control", 105,
resume_thread(fControlThread);
wait_for_thread(fControlThread, NULL);
thread_id fControlThread;
thread_id fControlThread;
fControlThread = spawn_thread(_ControlThread, "media_addon_server control",
resume_thread(fControlThread);
wait_for_thread(fControlThread, NULL);
if (fControlThread != -1) {
wait_for_thread(fControlThread, &err);
ASSERT(fControlThread == -1);
fControlThread = spawn_thread(_ControlThreadStart, "System clock control", 12, this);
resume_thread(fControlThread);
thread_id fControlThread;