Epub阅读器0.0.1
This commit is contained in:
@@ -0,0 +1,27 @@
|
||||
//
|
||||
// DTBlockFunctions.h
|
||||
// DTFoundation
|
||||
//
|
||||
// Created by Oliver Drobnik on 02.10.13.
|
||||
// Copyright (c) 2013 Cocoanetics. All rights reserved.
|
||||
//
|
||||
|
||||
#import <Foundation/Foundation.h>
|
||||
|
||||
/**
|
||||
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));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user