Files
2015-11-24 23:55:56 +08:00

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));