Searched refs:threads (Results 1 - 15 of 15) sorted by relevance

/haiku/src/tests/system/kernel/
H A Dport_multi_read_test.cpp46 thread_id threads[THREAD_COUNT]; local
48 threads[i] = spawn_thread(read_thread, "read thread", B_NORMAL_PRIORITY,
50 resume_thread(threads[i]);
53 printf("snooze for a bit, all threads should be waiting now.\n");
66 printf("waiting for threads to terminate\n");
68 wait_for_thread(threads[i], NULL);
/haiku/src/tests/system/kernel/unit/lock/
H A DRWLockTests.cpp130 thread_id threads[threadCount]; local
132 threads[i] = -1;
139 threads[i] = SpawnThread(this, method, "rw lock test",
141 if (threads[i] < 0) {
144 strerror(threads[i]));
150 resume_thread(threads[i]);
155 if (threads[i] >= 0)
156 wait_for_thread(threads[i], NULL);
/haiku/headers/private/system/
H A Dscheduler_defs.h59 scheduling_analysis_thread** threads; member in struct:scheduling_analysis
H A Dsyscalls.h208 extern status_t _kern_unblock_threads(thread_id* threads, uint32 count,
/haiku/src/system/libroot/posix/libstdthreads/
H A Dthrd.c31 #include <threads.h>
/haiku/src/system/libroot/posix/pthread/
H A Dpthread_once.cpp8 #include <threads.h>
60 // following threads) will block on the semaphore until the first thread is
63 // initRoutine. All following threads will return right away.
/haiku/src/add-ons/mail_daemon/inbound_protocols/imap/
H A DIMAPProtocol.cpp42 std::vector<thread_id> threads; local
44 threads.push_back(fWorkers.ItemAt(i)->Thread());
49 for (uint32 i = 0; i < threads.size(); i++)
50 wait_for_thread(threads[i], NULL);
/haiku/src/bin/debug/time_stats/
H A Dscheduling_analysis.cpp170 printf("scheduling analysis: %lu threads, %llu wait objects, "
175 std::sort(analysis.threads, analysis.threads + analysis.thread_count,
179 scheduling_analysis_thread* thread = analysis.threads[i];
/haiku/headers/cpp/
H A Dstl_alloc.h77 if (threads) pthread_mutex_lock(&_S_node_allocator_lock)
79 if (threads) pthread_mutex_unlock(&_S_node_allocator_lock)
86 if (threads) mutex_lock(&_S_node_allocator_lock)
88 if (threads) mutex_unlock(&_S_node_allocator_lock)
103 // This should work without threads, with sproc threads, or with
113 # define __NODE_ALLOCATOR_LOCK if (threads && __us_rsthread_malloc) \
115 # define __NODE_ALLOCATOR_UNLOCK if (threads && __us_rsthread_malloc) \
323 template <bool threads, int inst>
385 // This assumes the first constructor is called before threads
[all...]
/haiku/src/system/kernel/scheduler/
H A Dscheduling_analysis.cpp218 fAnalysis.threads = 0;
442 scheduling_analysis_thread** threads local
445 if (threads == NULL)
448 // Iterate through the hash table and collect all threads. Also polish
456 threads[index++] = thread;
466 fAnalysis.threads = threads;
572 // analyze how much threads and locking primitives we're talking about
/haiku/src/kits/debugger/controllers/
H A DDebugReportGenerator.cpp456 BObjectList< ::Thread> threads; local
460 threads.AddItem(thread);
465 threads.SortItems(&_CompareThreads);
466 for (int32 i = 0; (thread = threads.ItemAt(i)) != NULL; i++) {
497 for (int32 i = 0; (thread = threads.ItemAt(i)) != NULL; i++)
876 // sort stopped threads last, otherwise sort by thread ID
/haiku/src/apps/debugger/user_interface/gui/expression_eval_window/
H A DExpressionEvaluationWindow.cpp470 const ThreadList& threads = fTeam->Threads(); local
471 for (ThreadList::ConstIterator it = threads.GetIterator();
/haiku/build/scripts/
H A Dbuild_cross_tools_gcc4239 --enable-__cxa-atexit --enable-threads=posix \
/haiku/headers/private/kernel/
H A Dthread.h166 status_t _user_unblock_threads(thread_id* threads, uint32 count,
232 including the semaphore count and the queue of waiting threads. For certain
257 Generally blocking and unblocking threads proceed in the following manner:
283 - Check the client data structure that indicates whether one or more threads
/haiku/src/system/kernel/
H A Dthread.cpp121 : DefaultNotificationService("threads")
813 // No user-defined stack -- allocate one. For non-main threads the stack
1962 // filter out threads not matching the search criteria
2047 // kill off all other threads and the user debugger facilities
2297 // threads waiting for this thread's death and some object on its stack
2300 // other threads use objects on its stack -- so we want them terminated
2460 /*! Yield the CPU to other threads.
2462 state, and if it has a higher priority than the other ready threads, it
2534 // check the child death entries first (i.e. main threads of child
2544 // check the thread death entries of the team (non-main threads)
[all...]

Completed in 96 milliseconds