Searched refs:thread (Results 76 - 100 of 688) sorted by relevance

1234567891011>>

/macosx-10.10/xnu-2782.1.97/osfmk/kern/
H A Dstack.c39 #include <kern/thread.h>
84 STACK_ZINFO_PALLOC(thread_t thread) argument
89 ledger_credit(thread->t_ledger, task_ledgers.tkm_private, kernel_stack_size);
92 (task = thread->task) != NULL && (zinfo = task->tkm_zinfo) != NULL)
98 STACK_ZINFO_PFREE(thread_t thread) argument
103 ledger_debit(thread->t_ledger, task_ledgers.tkm_private, kernel_stack_size);
106 (task = thread->task) != NULL && (zinfo = task->tkm_zinfo) != NULL)
185 * Allocate a stack for a thread, may
241 thread_t thread)
244 assert(thread
240 stack_alloc( thread_t thread) argument
263 stack_free( thread_t thread) argument
276 stack_free_reserved( thread_t thread) argument
322 stack_alloc_try( thread_t thread) argument
495 stack_privilege( __unused thread_t thread) argument
[all...]
H A Dwait_queue.c105 * Each thread may be waiting for exactly one event; this event
106 * is set using assert_wait(). That thread may be awakened either
108 * or by directly waking that thread up with clear_wait().
116 * Locks on both the thread and on the hash buckets govern the
119 * bucket must be locked before any thread.
123 * thread or hash bucket locks.
1171 * Insert the current thread into the supplied wait queue
1176 * The waiting thread is assumed locked.
1187 thread_t thread)
1192 if (!wait_queue_assert_possible(thread))
1180 wait_queue_assert_wait64_locked( wait_queue_t wq, event64_t event, wait_interrupt_t interruptible, wait_timeout_urgency_t urgency, uint64_t deadline, uint64_t leeway, thread_t thread) argument
1263 thread_t thread = current_thread(); local
1304 thread_t thread = current_thread(); local
1340 thread_t thread = current_thread(); local
1379 thread_t thread = current_thread(); local
1535 thread_t thread = (thread_t)(void *) dequeue(q); local
1768 wait_queue_pull_thread_locked( wait_queue_t waitq, thread_t thread, boolean_t unlock) argument
1800 _wait_queue_select64_thread( wait_queue_t wq, event64_t event, thread_t thread) argument
1876 thread_t thread; local
1913 thread_t thread; local
1951 thread_t thread; local
2002 thread_t thread; local
2048 wait_queue_wakeup64_thread_locked( wait_queue_t wq, event64_t event, thread_t thread, wait_result_t result, boolean_t unlock) argument
2096 wait_queue_wakeup_thread( wait_queue_t wq, event_t event, thread_t thread, wait_result_t result) argument
2144 wait_queue_wakeup64_thread( wait_queue_t wq, event64_t event, thread_t thread, wait_result_t result) argument
[all...]
H A Dlocks.c66 #include <kern/thread.h>
498 thread_t thread = current_thread(); local
509 * during the time that this thread is asleep, so that when it
513 thread->rwlock_count++;
532 if ((thread->rwlock_count-- == 1 /* field now 0 */) && (thread->sched_flags & TH_SFLAG_RW_PROMOTED)) {
534 lck_rw_clear_promotion(thread);
556 thread_t thread = current_thread(); local
568 thread->rwlock_count++;
587 if ((thread
702 thread_t thread = current_thread(); local
762 thread_t thread = current_thread(); local
910 thread_t thread = current_thread(); local
972 thread_t thread = current_thread(); local
1067 lck_rw_clear_promotion(thread_t thread) argument
[all...]
/macosx-10.10/xnu-2782.1.97/iokit/Kernel/
H A DIOLocks.cpp123 thread_t thread; member in struct:_IORecursiveLock
141 lock->thread = 0;
174 if( lock->thread == IOThreadSelf())
178 assert( lock->thread == 0 );
180 lock->thread = IOThreadSelf();
189 if( lock->thread == IOThreadSelf()) {
194 assert( lock->thread == 0 );
196 lock->thread = IOThreadSelf();
208 assert( lock->thread == IOThreadSelf() );
211 lock->thread
[all...]
/macosx-10.10/bind9-45.101/bind9/lib/isc/pthreads/
H A Dthread.c18 /* $Id: thread.c,v 1.17 2007/06/19 23:47:18 tbox Exp $ */
24 #include <isc/thread.h>
33 isc_thread_t *thread)
60 ret = pthread_create(thread, &attr, func, arg);
32 isc_thread_create(isc_threadfunc_t func, isc_threadarg_t arg, isc_thread_t *thread) argument
/macosx-10.10/ntp-92/lib/isc/pthreads/
H A Dthread.c18 /* $Id: thread.c,v 1.17 2007/06/19 23:47:18 tbox Exp $ */
24 #include <isc/thread.h>
33 isc_thread_t *thread)
60 ret = pthread_create(thread, &attr, func, arg);
32 isc_thread_create(isc_threadfunc_t func, isc_threadarg_t arg, isc_thread_t *thread) argument
/macosx-10.10/xnu-2782.1.97/libsyscall/mach/
H A Dexc_catcher.c45 mach_port_t thread,
61 return (*exc_raise_func)(exception_port, thread, task, exception, code, codeCnt);
64 return catch_exception_raise(exception_port, thread, task, exception, code, codeCnt);
43 internal_catch_exception_raise( mach_port_t exception_port, mach_port_t thread, mach_port_t task, exception_type_t exception, exception_data_t code, mach_msg_type_number_t codeCnt) argument
/macosx-10.10/xnu-2782.1.97/osfmk/i386/
H A Dfpu.h64 #include <kern/thread.h>
69 #include <i386/thread.h>
104 extern void fpu_save_context(thread_t thread);
H A Dpcb_native.c74 #include <kern/thread.h>
96 #include <i386/thread.h>
211 * Set the thread`s cthread (a.k.a pthread)
223 * Set the thread`s LDT or LDT entry.
246 thread_set_wq_state32(thread_t thread, thread_state_t tstate) argument
253 pal_register_cache_state(thread, DIRTY);
255 saved_state = USER_REGS32(thread);
259 if (curth != thread) {
261 thread_lock(thread);
280 if (curth != thread) {
290 thread_set_wq_state64(thread_t thread, thread_state_t tstate) argument
338 machine_thread_create( thread_t thread, task_t task) argument
412 machine_thread_destroy( thread_t thread) argument
437 machine_thread_set_tsd_base( thread_t thread, mach_vm_offset_t tsd_base) argument
[all...]
H A Dpal_routines.h106 extern void pal_dbg_page_fault( thread_t thread, user_addr_t vadddr,
113 void pal_syscall_restart(thread_t thread, x86_saved_state_t *state);
116 void pal_execve_return(thread_t thread);
119 void pal_thread_terminate_self(thread_t thread);
122 void pal_ast_check(thread_t thread);
138 * Mark in-memory thread register cache state validity.
141 void pal_register_cache_state(thread_t thread, pal_cache_state_t state);
144 /* Catch code running on the except thread that shouldn't be */
/macosx-10.10/OpenLDAP-499.27/OpenLDAP/libraries/libldap_r/
H A Dthr_thr.c21 #include "ldap_pvt_thread.h" /* Get the thread interface */
60 ldap_pvt_thread_create( ldap_pvt_thread_t * thread, argument
66 arg, detach ? THR_DETACHED : 0, thread ) );
75 int ldap_pvt_thread_join( ldap_pvt_thread_t thread, void **thread_return ) argument
77 thr_join( thread, NULL, thread_return );
82 ldap_pvt_thread_kill( ldap_pvt_thread_t thread, int signo ) argument
84 thr_kill( thread, signo );
/macosx-10.10/WebCore-7600.1.25/workers/
H A DSharedWorkerGlobalScope.cpp55 PassRefPtr<SharedWorkerGlobalScope> SharedWorkerGlobalScope::create(const String& name, const URL& url, const String& userAgent, std::unique_ptr<GroupSettings> settings, SharedWorkerThread& thread, const String& contentSecurityPolicy, ContentSecurityPolicy::HeaderType contentSecurityPolicyType) argument
57 RefPtr<SharedWorkerGlobalScope> context = adoptRef(new SharedWorkerGlobalScope(name, url, userAgent, WTF::move(settings), thread));
62 SharedWorkerGlobalScope::SharedWorkerGlobalScope(const String& name, const URL& url, const String& userAgent, std::unique_ptr<GroupSettings> settings, SharedWorkerThread& thread) argument
63 : WorkerGlobalScope(url, userAgent, WTF::move(settings), thread, 0)
77 SharedWorkerThread& SharedWorkerGlobalScope::thread() function in class:WebCore::SharedWorkerGlobalScope
79 return static_cast<SharedWorkerThread&>(Base::thread());
/macosx-10.10/libauto-186/tests/
H A DrecoverLocalObjects.m56 pthread_t thread;
57 pthread_create(&thread, NULL, doOnPthread, NULL);
58 pthread_join(thread, NULL);
61 printf("recovered %d of %d local thread only objects\n", Counter, howmany);
/macosx-10.10/ppp-786.1.1/Drivers/L2TP/L2TP-extension/
H A Dl2tp_udp.c40 #include <kern/thread.h>
57 thread_t thread; member in struct:l2tp_udp_thread
96 &l2tp_udp_thread_outq_size, 0, "Queue size for each l2tp output thread");
246 // Start up working thread
247 err = kernel_thread_start((thread_continue_t)l2tp_udp_thread_func, &l2tp_udp_threads[i], &l2tp_udp_threads[i].thread);
280 if (l2tp_udp_threads[i].thread) {
288 thread_terminate(l2tp_udp_threads[i].thread);
289 thread_deallocate(l2tp_udp_threads[i].thread);
336 int l2tp_udp_output(socket_t so, int thread, mbuf_t m, struct sockaddr* to) argument
345 if (thread <
442 l2tp_udp_attach(socket_t *socket, struct sockaddr *addr, int *thread, int nocksum, int delegated_process) argument
504 l2tp_udp_detach(socket_t so, int thread) argument
[all...]
/macosx-10.10/WebCore-7600.1.25/inspector/
H A DWorkerDebuggerAgent.cpp74 RunInspectorCommandsTask(WorkerThread* thread, WorkerGlobalScope* workerGlobalScope) argument
75 : m_thread(thread)
101 workerDebuggerAgents().set(&inspectedWorkerGlobalScope->thread(), this);
108 ASSERT(workerDebuggerAgents().contains(&m_inspectedWorkerGlobalScope->thread()));
109 workerDebuggerAgents().remove(&m_inspectedWorkerGlobalScope->thread());
112 void WorkerDebuggerAgent::interruptAndDispatchInspectorCommands(WorkerThread* thread) argument
116 if (WorkerDebuggerAgent* agent = workerDebuggerAgents().get(thread))
117 agent->m_scriptDebugServer.interruptAndRunTask(adoptPtr(new RunInspectorCommandsTask(thread, agent->m_inspectedWorkerGlobalScope)));
/macosx-10.10/dcerpc-61/dcerpc/libdcethread/
H A Ddcethread_signal_to_interrupt.c89 /* FIXME: do we need to retain thread? */
99 * This async signal handler is already running on the correct thread
126 * thread. This helper thread will sigwait() on all async signals of
128 * async signal handler) to exceptions. The helper thread then posts the
129 * cancel to the thread that initialized the exception package for
133 dcethread_signal_to_interrupt(sigset_t *asigset, dcethread* thread) argument
136 * The helper thread will need the thread id of the first thread
[all...]
/macosx-10.10/xnu-2782.1.97/osfmk/kperf/
H A Dkperf.c29 #include <kern/thread.h>
45 /* thread on CPUs before starting the PET thread */
180 kperf_get_thread_bits( thread_t thread )
182 return thread->t_chud;
186 kperf_set_thread_bits( thread_t thread, uint32_t bits ) argument
188 thread->t_chud = bits;
191 /* mark an AST to fire on a thread */
193 kperf_set_thread_ast( thread_t thread )
195 /* FIXME: only call this on current thread fro
[all...]
/macosx-10.10/xnu-2782.1.97/osfmk/mach/
H A Dexc.defs80 thread : mach_port_move_send_t;
84 thread : mach_port_t;
106 thread : mach_port_move_send_t;
110 thread : mach_port_t;
H A Dmach_exc.defs80 thread : mach_port_move_send_t;
84 thread : mach_port_t;
106 thread : mach_port_move_send_t;
110 thread : mach_port_t;
/macosx-10.10/ruby-106/ruby/test/drb/
H A Dut_array.rb13 DRb.thread.join
H A Dut_drb_drbunix.rb14 DRb.thread.join
H A Dut_safe1.rb14 DRb.thread.join
/macosx-10.10/tcl-105/tcl_ext/thread/
H A DMakefile2 # Makefile for thread
8 Project = thread
/macosx-10.10/xnu-2782.1.97/bsd/kern/
H A Dspl.c30 #include <kern/thread.h>
/macosx-10.10/xnu-2782.1.97/osfmk/console/
H A Dserial_general.c38 #include <kern/thread.h>
46 * This routine will start a thread that polls the serial port, listening for
54 thread_t thread; local
60 result = kernel_thread_start_priority((thread_continue_t)serial_keyboard_start, NULL, MAXPRI_KERNEL, &thread);
64 thread_deallocate(thread);

Completed in 306 milliseconds

1234567891011>>