public void DispatchBarrierSync(DispatchBlock block) { if (block == null) { throw new ArgumentNullException(nameof(block)); } dispatch_barrier_sync(GetCheckedHandle(), block.GetCheckedHandle()); }
public void DispatchAfter(DispatchTime when, DispatchBlock block) { if (block == null) { throw new ArgumentNullException(nameof(block)); } dispatch_after(when.Nanoseconds, GetCheckedHandle(), block.GetCheckedHandle()); }
public void Notify(DispatchQueue queue, DispatchBlock block) { if (queue == null) { throw new ArgumentNullException(nameof(queue)); } if (block == null) { throw new ArgumentNullException(nameof(block)); } dispatch_group_notify(GetCheckedHandle(), queue.Handle, block.GetCheckedHandle()); }
public void Notify(DispatchQueue queue, DispatchBlock notification) { if (queue == null) { throw new ArgumentNullException(nameof(queue)); } if (notification == null) { throw new ArgumentNullException(nameof(notification)); } dispatch_block_notify(GetCheckedHandle(), queue.GetCheckedHandle(), notification.GetCheckedHandle()); }