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
00022
00023 #ifndef DISPATCH_H_
00024 #define DISPATCH_H_
00025
00026 #ifdef __BLOCKS__
00027 # include <dispatch/dispatch.h>
00028 # define NSEC_PER_MSEC 1000000ll
00029 #else
00030 # ifdef HAVE_NATIVE_DISPATCH_H
00031 # include <dispatch/dispatch.h>
00032 # include "dispatch_blocks.h"
00033
00034 # define NSEC_PER_MSEC 1000000ll
00035
00036
00037
00038
00039
00040
00041 # endif
00042
00043 # if defined(__cplusplus)
00044 # define __DISPATCH_BEGIN_DECLS extern "C" {
00045 # define __DISPATCH_END_DECLS }
00046 # else
00047 # define __DISPATCH_BEGIN_DECLS
00048 # define __DISPATCH_END_DECLS
00049 # endif
00050
00051 # include <stddef.h>
00052 # include <stdint.h>
00053 # ifndef WIN32
00054 # include <stdbool.h>
00055 # endif
00056 # include <stdarg.h>
00057
00058 # define DISPATCH_API_VERSION 20090501
00059
00060 # ifndef __DISPATCH_INDIRECT__
00061 # define __DISPATCH_INDIRECT__
00062 # endif
00063
00064 # include "base.h"
00065 # include "object.h"
00066 # include "time.h"
00067 # include "queue.h"
00068
00069
00070
00071 # include "group.h"
00072 # include "semaphore.h"
00073 # include "once.h"
00074
00075 # undef __DISPATCH_INDIRECT__
00076
00077 #endif // ELSE _BLOCKS_
00078
00079 #endif