mirror of
https://github.com/wu736139669/Doctor.git
synced 2026-08-05 05:55:05 +00:00
26 lines
594 B
C
26 lines
594 B
C
//
|
|
// DTBlockFunctions.h
|
|
// DTFoundation
|
|
//
|
|
// Created by Oliver Drobnik on 02.10.13.
|
|
// Copyright (c) 2013 Cocoanetics. All rights reserved.
|
|
//
|
|
|
|
/**
|
|
Block Utility Methods
|
|
*/
|
|
|
|
/**
|
|
Performs a block synchronous if execution is currently on the main thread or dispatches it asynchronously if not
|
|
@param block The block to execute
|
|
*/
|
|
void DTBlockPerformSyncIfOnMainThreadElseAsync(void (^block)(void));
|
|
|
|
/**
|
|
Performs a block synchronous on the main thread regardless of the current thread
|
|
@param block The block to execute
|
|
*/
|
|
void DTBlockPerformSyncOnMainThread(void (^block)(void));
|
|
|
|
|