Searched refs:thread (Results 126 - 150 of 260) sorted by relevance

1234567891011

/xnu-2782.1.97/osfmk/kern/
H A DMakefile51 thread.h \
H A Dtimer.c63 #include <kern/thread.h>
150 * Update the current thread timer and
H A Dthread_call.c37 #include <kern/thread.h>
113 static void sched_call_thread(int type, thread_t thread);
191 * Add a thread if either there are no threads,
270 * thread call groups.
276 thread_t thread; local
279 result = kernel_thread_start_priority((thread_continue_t)thread_call_thread, group, group->pri, &thread);
290 thread_set_eager_preempt(thread);
293 thread_deallocate(thread);
308 thread_t thread; local
352 result = kernel_thread_start_priority((thread_continue_t)thread_call_daemon, NULL, BASEPRI_PREEMPT + 1, &thread);
1079 sched_call_thread( int type, __unused thread_t thread) argument
[all...]
H A Dhibernate.c32 #include <kern/thread.h>
H A Dipc_clock.c41 #include <kern/thread.h>
/xnu-2782.1.97/osfmk/kperf/
H A Dkperf_kpc.c33 #include <kern/thread.h> /* thread_* */
H A Dcallstack.c33 #include <kern/thread.h>
/xnu-2782.1.97/osfmk/i386/
H A Dmachine_task.c58 #include <kern/thread.h>
269 * Set initial default state on a thread as stored in the MACHINE_TASK data.
274 thread_t thread,
289 return machine_thread_set_state(thread, flavor, parent_task->task_debug, count);
273 machine_thread_inherit_taskwide( thread_t thread, task_t parent_task) argument
H A Dpmap.h80 #include <kern/thread.h>
463 set_dirbase(pmap_t tpmap, __unused thread_t thread, int my_cpu) { argument
587 #define PMAP_ACTIVATE_MAP(map, thread, my_cpu) { \
591 set_dirbase(tpmap, thread, my_cpu); \
595 #define PMAP_DEACTIVATE_MAP(map, thread, ccpu) \
598 #define PMAP_DEACTIVATE_MAP(map, thread)
687 #define PMAP_CONTEXT(pmap, thread)
H A Dfpu.c67 #include <kern/thread.h>
80 #include <i386/thread.h>
271 * Allocate and initialize FP state for current thread.
376 * Save thread`s FPU context.
379 fpu_save_context(thread_t thread) argument
384 ifps = (thread)->machine.ifps;
398 fpu_store_registers(ifps, (thread_is_64bit(thread) && is_saved_state64(thread->machine.iss)));
407 * Called only when thread terminating - no locking necessary.
416 * Set the floating-point state for a thread base
[all...]
H A Dlocks.h131 vm_offset_t thread; member in struct:__anon912
H A Dtrap_native.c77 #include <kern/thread.h>
/xnu-2782.1.97/osfmk/vm/
H A Dvm_compressor_backing_store.c173 thread_t thread = NULL; local
189 BASEPRI_PREEMPT - 1, &thread) != KERN_SUCCESS) {
192 thread->options |= TH_OPT_VMPRIV;
193 vm_swapout_thread_id = thread->thread_id;
195 thread_deallocate(thread);
198 BASEPRI_PREEMPT - 1, &thread) != KERN_SUCCESS) {
201 thread->options |= TH_OPT_VMPRIV;
203 thread_deallocate(thread);
207 BASEPRI_PREEMPT - 1, &thread) != KERN_SUCCESS) {
210 thread_deallocate(thread);
[all...]
/xnu-2782.1.97/tools/tests/MPMMTest/
H A DKQMPMMtest.c662 thread_spawn(thread_id_t *thread, void *(fn)(void *), void *arg) { argument
666 &thread->tid,
673 printf("created pthread %p\n", thread->tid);
675 thread->pid = fork();
676 if (thread->pid == 0) {
683 printf("forked pid %d\n", thread->pid);
688 thread_join(thread_id_t *thread) { argument
692 printf("joining thread %p\n", thread->tid);
693 ret = pthread_join(thread
[all...]
/xnu-2782.1.97/bsd/hfs/
H A Dhfs_cnode.c355 * that we don't race with another thread that may be doing an
391 * cnode lock, it is impossible for a competing thread to create the resource fork
879 * with us for this thread.
1078 * subject to a race where the calling thread invoked cat_lookup, got a valid lookup
1312 * the fileystem to be re-entered on this thread for this vp
1770 * to change the counter, but consider this sequence of events: thread
1772 * entry. A context switch occurs and thread B increments the counter
1773 * to 3, thread C now gets the generation counter (for whatever
1774 * purpose), and then another thread makes another change and the
1775 * generation counter is incremented again---it's now 4. Now thread
2000 thread_t thread = current_thread(); local
2214 const thread_t thread = current_thread(); local
2345 thread_t thread = current_thread(); local
2380 thread_t thread = current_thread(); local
2426 thread_t thread = current_thread(); local
[all...]
/xnu-2782.1.97/bsd/sys/
H A Dpthread_shims.h50 typedef void (*sched_call_t)(int type, thread_t thread);
159 kern_return_t (*thread_set_wq_state32)(thread_t thread, thread_state_t state);
160 kern_return_t (*thread_set_wq_state64)(thread_t thread, thread_state_t state);
173 /* osfmk/kern/thread.h */
181 kern_return_t (*thread_affinity_set)(thread_t thread, uint32_t tag);
199 /* osfmk/kern/thread.h */
222 kern_return_t (*thread_set_tsd_base)(thread_t thread, mach_vm_offset_t tsd_base);
/xnu-2782.1.97/osfmk/bank/
H A Dbank.c925 * Purpose: swap the bank ledger on the thread.
927 * Note: Should be only called for current thread or thread which is not started.
930 bank_swap_thread_bank_ledger(thread_t thread __unused, ledger_t new_ledger __unused)
935 ledger_t old_ledger = thread->t_bankledger;
942 assert((thread == current_thread() || thread->started == 0));
945 thread_lock(thread);
948 * Calculation of time elapsed by the thread before voucher swap.
951 * thread ledge
[all...]
/xnu-2782.1.97/bsd/kern/
H A Dpthread_shims.c35 #include <kern/thread.h>
153 thread_t thread = uth ? uth->uu_thread : current_thread(); local
156 requested_qos = proc_get_task_policy(task, thread, TASK_POLICY_ATTRIBUTE, TASK_POLICY_QOS);
160 * on another thread, if the current thread doesn't have any QoS set. In these cases, upgrade to
173 thread_t thread = uth ? uth->uu_thread : THREAD_NULL; local
175 return proc_thread_qos_add_override(task, thread, tid, override_qos, first_override_for_resource);
181 thread_t thread = uth ? uth->uu_thread : THREAD_NULL; local
183 return proc_thread_qos_remove_override(task, thread, tid);
H A Dkern_exit.c116 #include <kern/thread.h>
166 kern_return_t sys_perf_notify(thread_t thread, int pid);
261 * If a thread in this task has already
296 /* TODO: This should be done after becoming exit thread */
305 * corrupting the freed memory, let the exit thread
373 /* Last thread to terminate will call proc_exit() */
591 * no need to throttle this thread since its going away
776 thread_t thread = q->sigwait_thread; local
782 * Need to do this as it could be a thread which is not
783 * the first thread i
1207 thread_t thread; local
1428 thread_t thread; local
1996 thread_t thread = q->sigwait_thread; local
[all...]
/xnu-2782.1.97/bsd/dev/i386/
H A Dsdt_x86.c36 #include <kern/thread.h>
/xnu-2782.1.97/bsd/net/
H A Dflowadv.c77 * to the global fadv_list. This will then trigger the flow advisory thread
91 #include <kern/thread.h>
140 panic("%s: couldn't create flow event advisory thread",
/xnu-2782.1.97/iokit/Kernel/
H A DIOWorkLoop.cpp37 #include <kern/thread.h>
220 // as terminating and wakeup the work thread itself and return
413 thread_t thread = workThread; local
417 thread_deallocate(thread);
418 (void) thread_terminate(thread);
436 // Internal APIs used by event sources to control the thread
/xnu-2782.1.97/libsyscall/mach/servers/
H A Dls_defs.h52 long thread; member in struct:__anon854
/xnu-2782.1.97/security/
H A Dmac_process.c697 mac_thread_userret(struct thread *td)
711 mac_thread_get_threadlabel(struct thread *thread) argument
713 struct uthread *uthread = get_bsdthread_info(thread);
/xnu-2782.1.97/tools/tests/affinity/
H A Dpool.c35 * When affinity is enabled, each producer thread is tagged with an affinity tag
41 * Buffer management uses pthread mutex/condition variables. A thread blocks
94 /* This defines a worker thread */
98 pthread_t thread; member in struct:worker_info
184 * This is the central function for every thread.
208 * set our tag to by our thread set number.
219 * The tets thread to get here releases everyone and starts the timer.
398 /* Set up the queue for the workers of this thread set: */
440 if (ret = pthread_create(&wp->thread,
453 if (ret = pthread_create(&wp->thread,
[all...]

Completed in 135 milliseconds

1234567891011