Go to the source code of this file.
Functions | |
__DISPATCH_BEGIN_DECLS DISPATCH_EXPORT void | dispatch_debug (dispatch_object_t object, const char *message,...) |
DISPATCH_EXPORT void | dispatch_debugv (dispatch_object_t object, const char *message, va_list ap) |
DISPATCH_EXPORT void | dispatch_retain (dispatch_object_t object) |
DISPATCH_EXPORT void | dispatch_release (dispatch_object_t object) |
DISPATCH_EXPORT void * | dispatch_get_context (dispatch_object_t object) |
DISPATCH_EXPORT void | dispatch_set_context (dispatch_object_t object, void *context) |
DISPATCH_EXPORT void | dispatch_set_finalizer_f (dispatch_object_t object, dispatch_function_t finalizer) |
DISPATCH_EXPORT void | dispatch_suspend (dispatch_object_t object) |
DISPATCH_EXPORT void | dispatch_resume (dispatch_object_t object) |
__DISPATCH_BEGIN_DECLS DISPATCH_EXPORT void dispatch_debug | ( | dispatch_object_t | object, |
const char * | message, | ||
... | |||
) |
dispatch_debug
Programmatically log debug information about a dispatch object.
object | The object to introspect. |
message | The message to log above and beyond the introspection. |
DISPATCH_EXPORT void dispatch_debugv | ( | dispatch_object_t | object, |
const char * | message, | ||
va_list | ap | ||
) |
DISPATCH_EXPORT void* dispatch_get_context | ( | dispatch_object_t | object | ) |
dispatch_get_context
Returns the application defined context of the object.
object | The result of passing NULL in this parameter is undefined. |
DISPATCH_EXPORT void dispatch_release | ( | dispatch_object_t | object | ) |
dispatch_release
Decrement the reference count of a dispatch object.
A dispatch object is asynchronously deallocated once all references are released (i.e. the reference count becomes zero). The system does not guarantee that a given client is the last or only reference to a given object.
object | The object to release. The result of passing NULL in this parameter is undefined. |
DISPATCH_EXPORT void dispatch_resume | ( | dispatch_object_t | object | ) |
dispatch_resume
Resumes the invocation of blocks on a dispatch object.
object | The object to be resumed. The result of passing NULL in this parameter is undefined. |
DISPATCH_EXPORT void dispatch_retain | ( | dispatch_object_t | object | ) |
dispatch_retain
Increment the reference count of a dispatch object.
Calls to dispatch_retain() must be balanced with calls to dispatch_release().
object | The object to retain. The result of passing NULL in this parameter is undefined. |
DISPATCH_EXPORT void dispatch_set_context | ( | dispatch_object_t | object, |
void * | context | ||
) |
dispatch_set_context
Associates an application defined context with the object.
object | The result of passing NULL in this parameter is undefined. |
context | The new client defined context for the object. This may be NULL. |
DISPATCH_EXPORT void dispatch_set_finalizer_f | ( | dispatch_object_t | object, |
dispatch_function_t | finalizer | ||
) |
dispatch_set_finalizer_f
Set the finalizer function for a dispatch object.
The | dispatch object to modify. The result of passing NULL in this parameter is undefined. |
The | finalizer function pointer. |
A dispatch object's finalizer will be invoked on the object's target queue after all references to the object have been released. This finalizer may be used by the application to release any resources associated with the object, such as freeing the object's context. The context parameter passed to the finalizer function is the current context of the dispatch object at the time the finalizer call is made.
DISPATCH_EXPORT void dispatch_suspend | ( | dispatch_object_t | object | ) |
dispatch_suspend
Suspends the invocation of blocks on a dispatch object.
A suspended object will not invoke any blocks associated with it. The suspension of an object will occur after any running block associated with the object completes.
Calls to dispatch_suspend() must be balanced with calls to dispatch_resume().
object | The object to be suspended. The result of passing NULL in this parameter is undefined. |