Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021 #ifndef __DISPATCH_OBJECT__
00022 #define __DISPATCH_OBJECT__
00023
00024 #ifndef __DISPATCH_INDIRECT__
00025 #error "Please #include <xdispatch/dispatch.h> instead of this file directly."
00026 #include "base.h"
00027 #endif
00028
00029 #include <stdarg.h>
00030
00031 __DISPATCH_BEGIN_DECLS
00032
00045 __OSX_AVAILABLE_STARTING(__MAC_10_6,__IPHONE_4_0)
00046 DISPATCH_EXPORT DISPATCH_NONNULL2 DISPATCH_NOTHROW DISPATCH_FORMAT(printf,2,3)
00047 void
00048 dispatch_debug(dispatch_object_t object, const char *message, ...);
00049
00050 __OSX_AVAILABLE_STARTING(__MAC_10_6,__IPHONE_4_0)
00051 DISPATCH_EXPORT DISPATCH_NONNULL2 DISPATCH_NOTHROW DISPATCH_FORMAT(printf,2,0)
00052 void
00053 dispatch_debugv(dispatch_object_t object, const char *message, va_list ap);
00054
00069 __OSX_AVAILABLE_STARTING(__MAC_10_6,__IPHONE_4_0)
00070 DISPATCH_EXPORT DISPATCH_NONNULL_ALL DISPATCH_NOTHROW
00071 void
00072 dispatch_retain(dispatch_object_t object);
00073
00090 __OSX_AVAILABLE_STARTING(__MAC_10_6,__IPHONE_4_0)
00091 DISPATCH_EXPORT DISPATCH_NONNULL_ALL DISPATCH_NOTHROW
00092 void
00093 dispatch_release(dispatch_object_t object);
00094
00107 __OSX_AVAILABLE_STARTING(__MAC_10_6,__IPHONE_4_0)
00108 DISPATCH_EXPORT DISPATCH_NONNULL_ALL DISPATCH_PURE DISPATCH_WARN_RESULT DISPATCH_NOTHROW
00109 void *
00110 dispatch_get_context(dispatch_object_t object);
00111
00125 __OSX_AVAILABLE_STARTING(__MAC_10_6,__IPHONE_4_0)
00126 DISPATCH_EXPORT DISPATCH_NOTHROW
00127 void
00128 dispatch_set_context(dispatch_object_t object, void *context);
00129
00151 __OSX_AVAILABLE_STARTING(__MAC_10_6,__IPHONE_4_0)
00152 DISPATCH_EXPORT DISPATCH_NOTHROW
00153 void
00154 dispatch_set_finalizer_f(dispatch_object_t object,
00155 dispatch_function_t finalizer);
00156
00175 __OSX_AVAILABLE_STARTING(__MAC_10_6,__IPHONE_4_0)
00176 DISPATCH_EXPORT DISPATCH_NONNULL_ALL DISPATCH_NOTHROW
00177 void
00178 dispatch_suspend(dispatch_object_t object);
00179
00190 __OSX_AVAILABLE_STARTING(__MAC_10_6,__IPHONE_4_0)
00191 DISPATCH_EXPORT DISPATCH_NONNULL_ALL DISPATCH_NOTHROW
00192 void
00193 dispatch_resume(dispatch_object_t object);
00194
00195 __DISPATCH_END_DECLS
00196
00197 #endif