Lines Matching refs:new_context

84   block_context_t *new_context =  in AllocContext()  local
86 new_context->queue = queue; in AllocContext()
87 new_context->orig_context = orig_context; in AllocContext()
88 new_context->orig_work = orig_work; in AllocContext()
89 new_context->free_context_in_callback = true; in AllocContext()
90 new_context->submitted_synchronously = false; in AllocContext()
91 new_context->is_barrier_block = false; in AllocContext()
92 new_context->non_queue_sync_object = 0; in AllocContext()
93 return new_context; in AllocContext()
165 block_context_t *new_context = \
167 new_context->is_barrier_block = barrier; \
168 Release(thr, pc, (uptr)new_context); \
170 REAL(name##_f)(q, new_context, dispatch_callback_wrap); \
178 block_context_t new_context = { \
180 Release(thr, pc, (uptr)&new_context); \
182 REAL(name##_f)(q, &new_context, dispatch_callback_wrap); \
184 Acquire(thr, pc, (uptr)&new_context); \
191 block_context_t *new_context = \
193 new_context->is_barrier_block = barrier; \
194 Release(thr, pc, (uptr)new_context); \
196 REAL(name)(q, new_context, dispatch_callback_wrap); \
204 block_context_t new_context = { \
206 Release(thr, pc, (uptr)&new_context); \
208 REAL(name)(q, &new_context, dispatch_callback_wrap); \
210 Acquire(thr, pc, (uptr)&new_context); \
259 block_context_t *new_context = in DISPATCH_INTERCEPT_SYNC_F() local
261 Release(thr, pc, (uptr)new_context); in DISPATCH_INTERCEPT_SYNC_F()
263 REAL(dispatch_after_f)(when, queue, new_context, dispatch_callback_wrap); in DISPATCH_INTERCEPT_SYNC_F()
403 block_context_t *new_context = in DECLARE_REAL() local
405 new_context->is_barrier_block = true; in DECLARE_REAL()
406 Release(thr, pc, (uptr)new_context); in DECLARE_REAL()
407 REAL(dispatch_group_notify_f)(group, q, new_context, dispatch_callback_wrap); in DECLARE_REAL()
421 __block block_context_t new_context = { in TSAN_INTERCEPTOR() local
424 new_context.orig_context = handler; // To explicitly capture "handler". in TSAN_INTERCEPTOR()
425 dispatch_callback_wrap(&new_context); in TSAN_INTERCEPTOR()
427 uptr submit_sync = (uptr)&new_context; in TSAN_INTERCEPTOR()
450 __block block_context_t new_context = { in TSAN_INTERCEPTOR() local
453 new_context.orig_context = handler; // To explicitly capture "handler". in TSAN_INTERCEPTOR()
454 dispatch_callback_wrap(&new_context); in TSAN_INTERCEPTOR()
456 uptr submit_sync = (uptr)&new_context; in TSAN_INTERCEPTOR()
481 __block block_context_t new_context = { in TSAN_INTERCEPTOR() local
484 new_context.orig_context = handler; // To explicitly capture "handler". in TSAN_INTERCEPTOR()
485 dispatch_callback_wrap(&new_context); in TSAN_INTERCEPTOR()
487 uptr submit_sync = (uptr)&new_context; in TSAN_INTERCEPTOR()
577 block_context_t *new_context = in DECLARE_REAL_AND_INTERCEPTOR() local
579 uptr submit_sync = (uptr)new_context; in DECLARE_REAL_AND_INTERCEPTOR()
582 dispatch_callback_wrap(new_context); in DECLARE_REAL_AND_INTERCEPTOR()
592 __block block_context_t new_context = { in TSAN_INTERCEPTOR() local
595 new_context.orig_context = ^(void) { in TSAN_INTERCEPTOR()
598 dispatch_callback_wrap(&new_context); in TSAN_INTERCEPTOR()
600 uptr submit_sync = (uptr)&new_context; in TSAN_INTERCEPTOR()
609 __block block_context_t new_context = { in TSAN_INTERCEPTOR() local
612 new_context.orig_context = ^(void) { in TSAN_INTERCEPTOR()
615 dispatch_callback_wrap(&new_context); in TSAN_INTERCEPTOR()
617 uptr submit_sync = (uptr)&new_context; in TSAN_INTERCEPTOR()
626 __block block_context_t new_context = { in TSAN_INTERCEPTOR() local
630 new_context.orig_context = ^(void) { in TSAN_INTERCEPTOR()
633 dispatch_callback_wrap(&new_context); in TSAN_INTERCEPTOR()
635 uptr submit_sync = (uptr)&new_context; in TSAN_INTERCEPTOR()
645 __block block_context_t new_context = { in TSAN_INTERCEPTOR() local
649 new_context.orig_context = ^(void) { in TSAN_INTERCEPTOR()
652 dispatch_callback_wrap(&new_context); in TSAN_INTERCEPTOR()
654 uptr submit_sync = (uptr)&new_context; in TSAN_INTERCEPTOR()
663 __block block_context_t new_context = { in TSAN_INTERCEPTOR() local
665 new_context.non_queue_sync_object = (uptr)channel; in TSAN_INTERCEPTOR()
666 new_context.is_barrier_block = true; in TSAN_INTERCEPTOR()
668 new_context.orig_context = ^(void) { in TSAN_INTERCEPTOR()
671 dispatch_callback_wrap(&new_context); in TSAN_INTERCEPTOR()
673 uptr submit_sync = (uptr)&new_context; in TSAN_INTERCEPTOR()
683 __block block_context_t new_context = { in TSAN_INTERCEPTOR() local
690 new_context.orig_context = ^(void) { in TSAN_INTERCEPTOR()
693 dispatch_callback_wrap(&new_context); in TSAN_INTERCEPTOR()
695 uptr submit_sync = (uptr)&new_context; in TSAN_INTERCEPTOR()
708 __block block_context_t new_context = { in TSAN_INTERCEPTOR() local
715 new_context.orig_context = ^(void) { in TSAN_INTERCEPTOR()
718 dispatch_callback_wrap(&new_context); in TSAN_INTERCEPTOR()
720 uptr submit_sync = (uptr)&new_context; in TSAN_INTERCEPTOR()
733 __block block_context_t new_context = { in TSAN_INTERCEPTOR() local
740 new_context.orig_context = ^(void) { in TSAN_INTERCEPTOR()
743 dispatch_callback_wrap(&new_context); in TSAN_INTERCEPTOR()
745 uptr submit_sync = (uptr)&new_context; in TSAN_INTERCEPTOR()