fUpdateThread
if (fUpdateThread < 0) {
fUpdateThread = spawn_kernel_thread(_UpdateThread, "joystick update",
if (fUpdateThread < 0)
result = fUpdateThread;
resume_thread(fUpdateThread);
fUpdateThread = -1;
while (handler->fUpdateThread == find_thread(NULL)) {
thread_id fUpdateThread;
if (fUpdateThread >= B_OK)
kill_thread(fUpdateThread);
if (fUpdateThread >= B_OK)
update_time(fSettings, messenger, &fUpdateThread);
fUpdateThread = -1;
thread_id fUpdateThread;