Searched refs:thread (Results 301 - 325 of 475) sorted by relevance

<<111213141516171819

/haiku/headers/posix/
H A Dthreads.h88 int thrd_create(thrd_t *thread, thrd_start_t, void *);
/haiku/headers/private/kernel/
H A Dlock.h158 extern void mutex_transfer_lock(mutex* lock, thread_id thread);
282 recursive_lock_transfer_lock(recursive_lock* lock, thread_id thread) argument
288 mutex_transfer_lock(&lock->lock, thread);
290 lock->holder = thread;
/haiku/src/apps/haikudepot/ui/
H A DScreenshotWindow.h51 void _SetWorkerThread(thread_id thread);
H A DRatePackageWindow.h48 void _SetWorkerThread(thread_id thread);
H A DRatePackageWindow.cpp426 thread_id thread = spawn_thread(&_QueryRatingThreadEntry, local
428 if (thread >= 0)
429 _SetWorkerThread(thread);
436 thread_id thread = spawn_thread(&_SendRatingThreadEntry, local
438 if (thread >= 0)
439 _SetWorkerThread(thread);
444 RatePackageWindow::_SetWorkerThread(thread_id thread) argument
449 bool enabled = thread < 0;
455 if (thread >= 0) {
456 fWorkerThread = thread;
[all...]
H A DUserUsageConditionsWindow.cpp148 // start a new thread to pull down the user usage conditions data.
212 // for now we just don't allow the quit when the background thread
225 /*! This method is called on the main thread in order to initiate the background
227 responsibility for coordinating the creation of the thread and starting the
228 thread etc...
236 thread_id thread = spawn_thread(&_FetchDataThreadEntry, local
238 if (thread >= 0) {
240 _SetWorkerThread(thread);
243 debugger("unable to start a thread to fetch the user usage "
249 /*! This method is called from the thread i
394 _SetWorkerThread(thread_id thread) argument
[all...]
H A DUserLoginWindow.cpp90 with a pointer to the window structure are provided to the background thread
100 /*! A background thread runs to gather data to use in the interface for creating
101 a new user. This structure is passed to the background thread.
111 /*! A background thread runs to authenticate the user with the remote server
112 system. This structure provides the thread with the necessary data to
386 HDDEBUG("quit requested while worker thread is operating -- will "
387 "try again once the worker thread has completed");
452 UserLoginWindow::_SetWorkerThreadLocked(thread_id thread) argument
455 _SetWorkerThread(thread);
460 UserLoginWindow::_SetWorkerThread(thread_id thread) argument
500 thread_id thread = spawn_thread(&_AuthenticateThreadEntry, local
726 thread_id thread = spawn_thread(&_CreateAccountSetupThreadEntry, local
1074 thread_id thread = spawn_thread(&_CreateAccountThreadEntry, local
[all...]
/haiku/src/servers/registrar/
H A DMIMEManager.cpp249 MimeUpdateThread *thread = NULL; local
270 // Create the appropriate flavor of mime update thread
274 thread = new(nothrow) CreateAppMetaMimeThread(
283 thread = new(nothrow) UpdateMimeInfoThread(synchronous
297 err = thread ? B_OK : B_NO_MEMORY;
299 err = threadStatus = thread->InitCheck();
301 // Launch the thread
303 err = fThreadManager.LaunchThread(thread);
323 // Delete the thread if necessary
325 delete thread;
[all...]
/haiku/src/system/kernel/
H A Dcondition_variable.cpp19 #include <thread.h>
116 // variable's thread, so we must not be interrupted during it.
389 Thread* thread = atomic_pointer_get_and_set(&entry->fThread, (Thread*)NULL); local
390 if (thread == NULL) {
407 SpinLocker schedulerLocker(thread->scheduler_lock);
410 if (lastWaitStatus == STATUS_WAITING && thread->state != B_THREAD_WAITING) {
411 // The thread is not in B_THREAD_WAITING state, so we must unblock it early,
413 thread_unblock_locked(thread, result);
417 // No matter what the thread is doing, as we were the ones to clear its
423 // If the thread wa
[all...]
/haiku/headers/os/kernel/
H A DOS.h202 B_DO_NOT_RESCHEDULE = 0x02, /* thread is not rescheduled */
311 thread_id thread; member in struct:__anon7
345 extern status_t kill_thread(thread_id thread);
346 extern status_t resume_thread(thread_id thread);
347 extern status_t suspend_thread(thread_id thread);
349 extern status_t rename_thread(thread_id thread, const char *newName);
350 extern status_t set_thread_priority(thread_id thread, int32 newPriority);
352 extern status_t wait_for_thread(thread_id thread, status_t *returnValue);
359 extern status_t send_data(thread_id thread, int32 code, const void *buffer,
363 extern bool has_data(thread_id thread);
[all...]
/haiku/src/bin/consoled/
H A Dconsoled.cpp34 thread_id thread; member in struct:keyboard
211 wait_for_thread(keyboard->thread, NULL);
271 keyboard->thread = spawn_thread(&keyboard_reader, path,
273 if (keyboard->thread < 0) {
283 resume_thread(keyboard->thread);
/haiku/src/system/libroot/posix/pthread/
H A Dpthread_rwlock.cpp30 thread(find_thread(NULL)),
37 thread_id thread; member in struct:Waiter
238 owner = waiter->thread;
241 _kern_unblock_thread(waiter->thread, B_OK);
261 readers[readerCount++] = waiter->thread;
/haiku/src/kits/tracker/
H A DStatusWindow.cpp229 BStatusWindow::CreateStatusItem(thread_id thread, StatusWindowState type) argument
243 BStatusView* view = new BStatusView(rect, thread, type);
278 BStatusWindow::InitStatusItem(thread_id thread, int32 totalItems, argument
286 if (view->Thread() == thread) {
296 BStatusWindow::UpdateStatus(thread_id thread, const char* curItem, argument
304 if (view->Thread() == thread) {
313 BStatusWindow::RemoveStatusItem(thread_id thread) argument
322 if (view->Thread() == thread) {
365 BStatusWindow::CheckCanceledOrPaused(thread_id thread) argument
376 if (view && view->Thread() == thread) {
389 thread_id thread = view->Thread(); local
435 BStatusView(BRect bounds, thread_id thread, StatusWindowState type) argument
[all...]
/haiku/src/system/kernel/arch/ppc/paging/classic/
H A DPPCVMTranslationMapClassic.cpp83 #include <thread.h>
448 Thread* thread = thread_get_current_thread();
449 ThreadCPUPinner pinner(thread);
517 Thread* thread = thread_get_current_thread();
518 ThreadCPUPinner pinner(thread);
610 Thread* thread = thread_get_current_thread();
611 ThreadCPUPinner pinner(thread);
725 // processors (actually even this processor with another thread of the
778 Thread* thread = thread_get_current_thread();
779 ThreadCPUPinner pinner(thread);
[all...]
/haiku/src/system/kernel/arch/ppc/paging/460/
H A DPPCVMTranslationMap460.cpp83 #include <thread.h>
448 Thread* thread = thread_get_current_thread();
449 ThreadCPUPinner pinner(thread);
517 Thread* thread = thread_get_current_thread();
518 ThreadCPUPinner pinner(thread);
610 Thread* thread = thread_get_current_thread();
611 ThreadCPUPinner pinner(thread);
725 // processors (actually even this processor with another thread of the
778 Thread* thread = thread_get_current_thread();
779 ThreadCPUPinner pinner(thread);
[all...]
/haiku/src/system/kernel/arch/m68k/paging/040/
H A DM68KVMTranslationMap040.cpp17 #include <thread.h>
272 Thread* thread = thread_get_current_thread(); local
273 ThreadCPUPinner pinner(thread);
321 //ThreadCPUPinner pinner(thread);
370 Thread* thread = thread_get_current_thread(); local
371 ThreadCPUPinner pinner(thread);
481 // processors (actually even this processor with another thread of the
533 Thread* thread = thread_get_current_thread(); local
534 ThreadCPUPinner pinner(thread);
778 Thread* thread local
[all...]
/haiku/src/system/kernel/arch/x86/paging/pae/
H A DX86VMTranslationMapPAE.cpp15 #include <thread.h>
412 Thread* thread = thread_get_current_thread(); local
413 ThreadCPUPinner pinner(thread);
462 Thread* thread = thread_get_current_thread(); local
463 ThreadCPUPinner pinner(thread);
520 Thread* thread = thread_get_current_thread(); local
521 ThreadCPUPinner pinner(thread);
608 // processors (actually even this processor with another thread of the
658 Thread* thread = thread_get_current_thread(); local
659 ThreadCPUPinner pinner(thread);
900 Thread* thread = thread_get_current_thread(); local
1020 Thread* thread = thread_get_current_thread(); local
1086 Thread* thread = thread_get_current_thread(); local
[all...]
/haiku/src/apps/debugger/
H A DDebugger.cpp56 " %s [ <options> ] --thread <thread>\n"
68 "fourth form additionally stops the specified thread.\n"
93 thread_id thread; member in struct:Options
104 thread(-1),
121 _debuggerOptions.thread = options.thread;
146 { "thread", required_argument, 0, 'T' },
192 options.thread = strtol(optarg, NULL, 0);
193 if (options.thread <
[all...]
/haiku/src/servers/debug/
H A DDebugServer.cpp217 void _PrintStackTrace(thread_id thread);
406 // delete the message count semaphore and wait for the thread to die
474 // spawn the handler thread
480 "handler thread: %s\n", strerror(fHandlerThread));
711 thread_id thread = load_image(argc, argv, (const char**)environ); local
712 if (thread < 0) {
714 strerror(thread));
715 return thread;
717 resume_thread(thread);
720 "for team %" B_PRId32 ": thread
809 thread_id thread = message->Data().origin.thread; local
949 _PrintStackTrace(thread_id thread) argument
[all...]
/haiku/src/apps/processcontroller/
H A DProcessController.cpp100 thread_id thread; member in struct:__anon2
247 ProcessController::_HandleDebugRequest(team_id team, thread_id thread) argument
251 strlcpy(paramString, thread > 0 ? "--thread" : "--team",
254 thread > 0 ? thread : team);
288 thread_id thread; local
341 if (message->FindInt32("thread", &thread) == B_OK) {
343 if (get_thread_info(thread,
[all...]
/haiku/src/tests/system/kernel/
H A Dsyscall_restart_test.cpp40 thread_id thread = spawn_thread(_ThreadEntry, fName, B_NORMAL_PRIORITY,
42 if (thread < 0)
43 return Error("Failed to spawn thread: %s\n", strerror(thread));
45 resume_thread(thread);
52 kill(thread, SIGINT);
57 wait_for_thread(thread, &result);
/haiku/src/kits/debugger/debugger_interface/remote/
H A DRemoteDebugRequest.cpp362 RemoteDebugSetThreadFlagsRequest::SetTo(thread_id thread, int32 flags) argument
364 fThread = thread;
380 if (data.FindInt32("thread", &fThread) != B_OK)
394 status_t error = _output.AddInt32("thread", fThread);
419 RemoteDebugThreadActionRequest::SetTo(thread_id thread) argument
421 fThread = thread;
429 if (data.FindInt32("thread", &fThread) != B_OK)
440 return _output.AddInt32("thread", fThread);
549 RemoteDebugSetCpuStateRequest::SetTo(thread_id thread, CpuState* state) argument
551 fThread = thread;
[all...]
/haiku/src/libs/compat/freebsd_network/
H A Dbus.cpp44 thread_id thread; member in struct:internal_intr
369 wait_for_thread(intr->thread, &status);
395 intr->thread = -1;
411 intr->thread = spawn_kernel_thread(intr_handler, semName,
413 if (intr->thread < B_OK) {
448 resume_thread(intr->thread);
/haiku/headers/private/fs_shell/
H A Dfssh_lock.h64 extern void fssh_recursive_lock_transfer_lock(fssh_recursive_lock *lock, fssh_thread_id thread);
82 extern void fssh_mutex_transfer_lock(fssh_mutex* lock, fssh_thread_id thread);
/haiku/src/add-ons/kernel/file_systems/netfs/shared/
H A DRequestConnection.cpp41 fThread = spawn_thread(_LoopEntry, "down stream thread",
130 // create a thread per down-stream channel
179 RequestConnection::DownStreamChannelError(DownStreamThread* thread, argument
185 fRequestHandler->HandleRequest(&request, thread->GetRequestChannel());

Completed in 149 milliseconds

<<111213141516171819