#include "base.h"
#include <stdarg.h>
Go to the source code of this file.
Functions | |
DISPATCH_NONNULL2 DISPATCH_NOTHROW | DISPATCH_FORMAT (printf, 2, 3) void dispatch_debug(dispatch_object_t object |
dispatch_debug | |
DISPATCH_NONNULL2 DISPATCH_NOTHROW const char DISPATCH_NONNULL2 DISPATCH_NOTHROW | DISPATCH_FORMAT (printf, 2, 0) void dispatch_debugv(dispatch_object_t object |
DISPATCH_NONNULL_ALL DISPATCH_NOTHROW void | dispatch_retain (dispatch_object_t object) |
dispatch_retain | |
DISPATCH_NONNULL_ALL DISPATCH_NOTHROW void | dispatch_release (dispatch_object_t object) |
dispatch_release | |
DISPATCH_NONNULL_ALL DISPATCH_PURE DISPATCH_WARN_RESULT DISPATCH_NOTHROW void * | dispatch_get_context (dispatch_object_t object) |
dispatch_get_context | |
DISPATCH_NOTHROW void | dispatch_set_context (dispatch_object_t object, void *context) |
dispatch_set_context | |
DISPATCH_NOTHROW void | dispatch_set_finalizer_f (dispatch_object_t object, dispatch_function_t finalizer) |
dispatch_set_finalizer_f | |
DISPATCH_NONNULL_ALL DISPATCH_NOTHROW void | dispatch_suspend (dispatch_object_t object) |
dispatch_suspend | |
DISPATCH_NONNULL_ALL DISPATCH_NOTHROW void | dispatch_resume (dispatch_object_t object) |
dispatch_resume | |
Variables | |
DISPATCH_NONNULL2 DISPATCH_NOTHROW const char * | message |
DISPATCH_NONNULL2 DISPATCH_NOTHROW const char DISPATCH_NONNULL2 DISPATCH_NOTHROW const char va_list | ap |
DISPATCH_NONNULL2 DISPATCH_NOTHROW DISPATCH_FORMAT | ( | printf | , |
2 | , | ||
3 | |||
) |
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_NONNULL2 DISPATCH_NOTHROW const char DISPATCH_NONNULL2 DISPATCH_NOTHROW DISPATCH_FORMAT | ( | printf | , |
2 | , | ||
0 | |||
) |
DISPATCH_NONNULL_ALL DISPATCH_PURE DISPATCH_WARN_RESULT DISPATCH_NOTHROW 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_NONNULL_ALL DISPATCH_NOTHROW 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_NONNULL_ALL DISPATCH_NOTHROW 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_NONNULL_ALL DISPATCH_NOTHROW 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_NOTHROW 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_NOTHROW 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_NONNULL_ALL DISPATCH_NOTHROW 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. |
DISPATCH_NONNULL2 DISPATCH_NOTHROW const char DISPATCH_NONNULL2 DISPATCH_NOTHROW const char va_list ap |