XDispatch 0.7.2
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
object.h
Go to the documentation of this file.
00001 /*
00002  * Copyright (c) 2008-2009 Apple Inc. All rights reserved.
00003  *
00004  * @APPLE_APACHE_LICENSE_HEADER_START@
00005  * 
00006  * Licensed under the Apache License, Version 2.0 (the "License");
00007  * you may not use this file except in compliance with the License.
00008  * You may obtain a copy of the License at
00009  * 
00010  *     http://www.apache.org/licenses/LICENSE-2.0
00011  * 
00012  * Unless required by applicable law or agreed to in writing, software
00013  * distributed under the License is distributed on an "AS IS" BASIS,
00014  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
00015  * See the License for the specific language governing permissions and
00016  * limitations under the License.
00017  * 
00018  * @APPLE_APACHE_LICENSE_HEADER_END@
00019  */
00020 
00021 #ifndef __DISPATCH_OBJECT__
00022 #define __DISPATCH_OBJECT__
00023 
00029 #ifndef __DISPATCH_INDIRECT__
00030 #error "Please #include <dispatch/dispatch.h> instead of this file directly."
00031 #include "base.h" // for HeaderDoc
00032 #endif
00033 
00034 #include <stdarg.h>
00035 
00036 __DISPATCH_BEGIN_DECLS
00037 
00048 DISPATCH_EXPORT   
00049 void
00050 dispatch_debug(dispatch_object_t object, const char *message, ...);
00051 
00052 
00053 DISPATCH_EXPORT   
00054 void
00055 dispatch_debugv(dispatch_object_t object, const char *message, va_list ap);
00056 
00068 DISPATCH_EXPORT  
00069 void
00070 dispatch_retain(dispatch_object_t object);
00071 
00085 DISPATCH_EXPORT  
00086 void
00087 dispatch_release(dispatch_object_t object);
00088 
00098 DISPATCH_EXPORT    
00099 void *
00100 dispatch_get_context(dispatch_object_t object);
00101 
00113 DISPATCH_EXPORT  //
00114 void
00115 dispatch_set_context(dispatch_object_t object, void *context);
00116 
00135 DISPATCH_EXPORT  //
00136 void
00137 dispatch_set_finalizer_f(dispatch_object_t object,
00138        dispatch_function_t finalizer);
00139 
00155 DISPATCH_EXPORT  
00156 void
00157 dispatch_suspend(dispatch_object_t object);
00158 
00167 DISPATCH_EXPORT  
00168 void
00169 dispatch_resume(dispatch_object_t object);
00170 
00171 __DISPATCH_END_DECLS
00172 
00175 #endif
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines

Generated on Sun Jan 27 2013 21:21:52 for XDispatch by Doxygen 1.7.6.1
© 2010-2013 MLBA (about | privacy) All Rights reserved.