Home
last modified time | relevance | path

Searched refs:SYNC_POLICY_FIFO (Results 1 – 25 of 29) sorted by relevance

12

/xnu-12377.41.6/osfmk/mach/
H A Dsync_policy.h40 #define SYNC_POLICY_FIFO 0x0 macro
44 #define SYNC_POLICY_LIFO (SYNC_POLICY_FIFO|SYNC_POLICY_REVERSED)
55 (SYNC_POLICY_FIFO | SYNC_POLICY_LIFO | SYNC_POLICY_PREPOST)
/xnu-12377.41.6/tests/
H A Dioperf.c222 SYNC_POLICY_FIFO, 0), "semaphore_create");
225 SYNC_POLICY_FIFO, 0), "semaphore_create");
H A Dpoll_select_kevent_paired_fds.c387 …T_ASSERT_MACH_SUCCESS(semaphore_create(mach_task_self(), &shared.wr_finished, SYNC_POLICY_FIFO, 0), in write_to_fd()
425 …T_ASSERT_MACH_SUCCESS(semaphore_create(mach_task_self(), &shared.wr_finished, SYNC_POLICY_FIFO, 0), in write_to_fd()
636 …T_ASSERT_MACH_SUCCESS(semaphore_create(mach_task_self(), &shared.rd_finished, SYNC_POLICY_FIFO, 0), in read_from_fd()
674 …T_ASSERT_MACH_SUCCESS(semaphore_create(mach_task_self(), &shared.rd_finished, SYNC_POLICY_FIFO, 0), in read_from_fd()
795 T_ASSERT_MACH_SUCCESS(semaphore_create(mach_task_self(), &shared.wr_wait.sem, SYNC_POLICY_FIFO, 0), in drive_threads()
H A Dselect_stress.c438 T_ASSERT_MACH_SUCCESS(semaphore_create(mach_task_self(), &g_sync_sem, SYNC_POLICY_FIFO, 0),
441 T_ASSERT_MACH_SUCCESS(semaphore_create(mach_task_self(), &g_thread_sem, SYNC_POLICY_FIFO, 0),
H A Dmach_eventlink.c897 kr = semaphore_create(mach_task_self(), &g_sem_done, SYNC_POLICY_FIFO, 0);
H A Dstackshot_block_owner_14362384.m573 ret = semaphore_create(mach_task_self(), &sem, SYNC_POLICY_FIFO, 0);
/xnu-12377.41.6/tests/sched/
H A Dcontextswitch.c213 SYNC_POLICY_FIFO, 0), "semaphore_create");
216 SYNC_POLICY_FIFO, 0), "semaphore_create");
H A Dyield_aggressor.c225 kr = semaphore_create(mach_task_self(), &ready_sem, SYNC_POLICY_FIFO, 0); in run_yielding_test()
227 kr = semaphore_create(mach_task_self(), &go_sem, SYNC_POLICY_FIFO, 0); in run_yielding_test()
H A Dsetitimer.c182 kr = semaphore_create(mach_task_self(), &gMainWaitForWorkers, SYNC_POLICY_FIFO, 0);
185 kr = semaphore_create(mach_task_self(), &gWorkersStart, SYNC_POLICY_FIFO, 0);
/xnu-12377.41.6/tools/tests/zero-to-n/
H A Dzero-to-n.c1255 kr = semaphore_create(mach_task_self(), &g_main_sem, SYNC_POLICY_FIFO, 0); in main()
1266 kr = semaphore_create(mach_task_self(), &g_semarr[i], SYNC_POLICY_FIFO, 0); in main()
1272 kr = semaphore_create(mach_task_self(), &g_broadcastsem, SYNC_POLICY_FIFO, 0); in main()
1274 kr = semaphore_create(mach_task_self(), &g_leadersem, SYNC_POLICY_FIFO, 0); in main()
1279 kr = semaphore_create(mach_task_self(), &g_donesem, SYNC_POLICY_FIFO, 0); in main()
1283 kr = semaphore_create(mach_task_self(), &g_readysem, SYNC_POLICY_FIFO, 0); in main()
1286 kr = semaphore_create(mach_task_self(), &g_rt_churn_sem, SYNC_POLICY_FIFO, 0); in main()
1289 kr = semaphore_create(mach_task_self(), &g_rt_churn_start_sem, SYNC_POLICY_FIFO, 0); in main()
/xnu-12377.41.6/tests/recount/
H A Drecount_test_utils.c323 SYNC_POLICY_FIFO, 0); in scene_start()
326 SYNC_POLICY_FIFO, 0); in scene_start()
/xnu-12377.41.6/iokit/Kernel/
H A DPassthruInterruptController.cpp54 if (semaphore_create(kernel_task, &child_sentinel, SYNC_POLICY_FIFO, 0) != KERN_SUCCESS) { in init()
H A DIOCommandQueue.cpp94 != semaphore_create(kernel_task, &producerSema, SYNC_POLICY_FIFO, inSize)) { in OSDefineMetaClassAndStructors()
/xnu-12377.41.6/iokit/Tests/
H A DTestDevice.cpp183 != semaphore_create(kernel_task, &completeSema, SYNC_POLICY_FIFO, 4)) { in testWorkLoop()
/xnu-12377.41.6/tools/tests/jitter/
H A Dtimer_jitter.c321 kret = semaphore_create(mach_task_self(), &wakeup_semaphore, SYNC_POLICY_FIFO, 0); in main()
327 kret = semaphore_create(mach_task_self(), &return_semaphore, SYNC_POLICY_FIFO, 0); in main()
/xnu-12377.41.6/tests/ipc/
H A Dkernel_signed_pac_thread_state.c403 SYNC_POLICY_FIFO, 0), "semaphore_create");
/xnu-12377.41.6/osfmk/kern/
H A Dwaitq.c663 waitq_init(&global_waitqs[i], WQT_QUEUE, SYNC_POLICY_FIFO); in waitq_bootstrap()
666 waitq_init(&select_conflict_queue, WQT_SELECT, SYNC_POLICY_FIFO); in waitq_bootstrap()
2115 waitq_init(selset, WQT_SELECT_SET, SYNC_POLICY_FIFO); in select_set_alloc()
2452 waitq_init(&wqt_waitq_array[i], WQT_PORT, SYNC_POLICY_FIFO); in wqt_start()
H A Dsfi.c246 waitq_init(&sfi_classes[i].waitq, WQT_QUEUE, SYNC_POLICY_FIFO); in sfi_init()
H A Dthread_call.c478 waitq_init(&group->waiters_waitq, WQT_QUEUE, SYNC_POLICY_FIFO); in thread_call_group_setup()
532 waitq_init(&daemon_waitq, WQT_QUEUE, SYNC_POLICY_FIFO); in thread_call_initialize()
/xnu-12377.41.6/osfmk/ipc/
H A Dipc_eventlink.c188 waitq_init(&ipc_eventlink_base->elb_waitq, WQT_QUEUE, SYNC_POLICY_FIFO); in ipc_eventlink_initialize()
H A Dipc_pset.c90 SYNC_POLICY_INIT_LOCKED | SYNC_POLICY_FIFO); in ipc_port_set_init()
/xnu-12377.41.6/bsd/tests/
H A Dcopyio_tests.c101 semaphore_create(current_task(), &tdata.done, SYNC_POLICY_FIFO, 0); in copyio_test_run_in_thread()
/xnu-12377.41.6/bsd/kern/
H A Dposix_sem.c637 kret = semaphore_create(kernel_task, &new_pinfo->psem_semobject, SYNC_POLICY_FIFO, value); in sem_open()
H A Dkern_sysctl.c3960 SYNC_POLICY_FIFO, 0);
4041 SYNC_POLICY_FIFO,
6139 semaphore_create(kernel_task, &sysctl_test_panic_with_thread_sem, SYNC_POLICY_FIFO, 0);
/xnu-12377.41.6/tests/unit/mocks/
H A Dmock_thread.c1141 MOCK_waitq_init((struct waitq*)&global_mock_waitqs[i], WQT_QUEUE, SYNC_POLICY_FIFO); in global_mock_waitqs_init()

12