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_TIME__
00022 #define __DISPATCH_TIME__
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 <stdint.h>
00030 
00031 __DISPATCH_BEGIN_DECLS
00032 
00033 struct timespec;
00034 
00035 
00036 #ifdef NSEC_PER_SEC
00037 #undef NSEC_PER_SEC
00038 #endif
00039 #ifdef USEC_PER_SEC
00040 #undef USEC_PER_SEC
00041 #endif
00042 #ifdef NSEC_PER_USEC
00043 #undef NSEC_PER_USEC
00044 #endif
00045 #ifdef NSEC_PER_MSEC
00046 #undef NSEC_PER_MSEC
00047 #endif
00048 #define NSEC_PER_SEC (uint64_t)1000000000
00049 #define NSEC_PER_MSEC (uint64_t)1000000
00050 #define USEC_PER_SEC (uint64_t)1000000
00051 #define NSEC_PER_USEC (uint64_t)1000
00052 
00061 typedef uint64_t dispatch_time_t;
00062 
00063 #define DISPATCH_TIME_NOW 0
00064 #define DISPATCH_TIME_FOREVER (~0ull)
00065 
00086 __OSX_AVAILABLE_STARTING(__MAC_10_6,__IPHONE_4_0)
00087 DISPATCH_EXPORT DISPATCH_NOTHROW
00088 dispatch_time_t
00089 dispatch_time(dispatch_time_t when, int64_t delta);
00090 
00110 __OSX_AVAILABLE_STARTING(__MAC_10_6,__IPHONE_4_0)
00111 DISPATCH_EXPORT DISPATCH_NOTHROW
00112 dispatch_time_t
00113 dispatch_walltime(const struct timespec *when, int64_t delta);
00114 
00115 __DISPATCH_END_DECLS
00116 
00117 #endif