fWorkerThread
thread_id fWorkerThread;
fWorkerThread(-1),
fWorkerThread = spawn_kernel_thread(_WorkerThread, "SD bus controller",
resume_thread(fWorkerThread);
if (fWorkerThread != 0)
wait_for_thread(fWorkerThread, &result);
thread_id fWorkerThread;
fWorkerThread = spawn_kernel_thread(_WorkerThread, "SD bus poller",
resume_thread(fWorkerThread);
if (fWorkerThread != 0)
wait_for_thread(fWorkerThread, &result);
thread_id fWorkerThread;
fWorkerThread(-1),
if (fWorkerThread == -1) {
fWorkerThread = spawn_kernel_thread(worker_thread, "Modem: worker_thread",
resume_thread(fWorkerThread);
wait_for_thread(fWorkerThread, &tmp);
fWorkerThread = -1;
fWorkerThread = -1;
thread_id fWorkerThread;
if (!locker.IsLocked() || fWorkerThread >= 0)
fWorkerThread = thread;
resume_thread(fWorkerThread);
fWorkerThread = -1;
thread_id fWorkerThread;
if (fWorkerThread >= 0) {
fWorkerThread = thread;
resume_thread(fWorkerThread);
fWorkerThread = -1;
fWorkerThread(-1),
if (fWorkerThread >= 0)
wait_for_thread(fWorkerThread, NULL);
thread_id fWorkerThread;
if (fWorkerThread >= 0)
wait_for_thread(fWorkerThread, NULL);
if (fWorkerThread >= 0) {
fWorkerThread = thread;
resume_thread(fWorkerThread);
fWorkerThread = -1;
if (-1 != fWorkerThread)
if (-1 != fWorkerThread)
fWorkerThread(-1),
thread_id fWorkerThread;
if (fWorkerThread >= 0)
fWorkerThread(-1),
if (fWorkerThread >= 0)
wait_for_thread(fWorkerThread, NULL);
if (fWorkerThread >= 0) {
fWorkerThread = thread;
resume_thread(fWorkerThread);
fWorkerThread = -1;
if (fWorkerThread >= 0)
if (fWorkerThread >= 0)
thread_id fWorkerThread;
if (fWorkerThread == -1)
if (-1 != fWorkerThread)
resume_thread(fWorkerThread);
fWorkerThread = thread;
thread_id fWorkerThread;
fWorkerThread(new WorkerThread(this)),
fWorkerThread->SetLock(fCopyEngineCancelSemaphore);
fWorkerThread->SetPackagesList(list);
fWorkerThread->SetSpaceRequired(size);
fWorkerThread->StartInstall(srcItem->ID(),
fWorkerThread->InstallEFILoader(id, false);
fWorkerThread->WriteBootSector(fDestMenu);
fWorkerThread->PostMessage(&quitWithInstallStatus);
fWorkerThread->ScanDisksPartitions(fSrcMenu, fDestMenu, fEFILoaderMenu);
WorkerThread* fWorkerThread;
fWorkerThread(-1),
if (fWorkerThread >= 0)
wait_for_thread(fWorkerThread, NULL);
fWorkerThread = spawn_thread(_WorkerLoopEntry, "worker", B_NORMAL_PRIORITY,
if (fWorkerThread < 0)
return fWorkerThread;
resume_thread(fWorkerThread);