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 #ifndef XDISPATCH_H_
00023 #define XDISPATCH_H_
00024
00025 # ifdef HAVE_NATIVE_DISPATCH_H
00026 # include <dispatch/dispatch.h>
00027 # define NSEC_PER_MSEC 1000000ll
00028 # else
00029 # include "../libdispatch/dispatch.h"
00030 # endif
00031
00032 #if defined(__cplusplus)
00033
00034 #ifndef XDISPATCH_EXPORT
00035 # ifdef _WIN32
00036 # ifdef XDISPATCH_MAKEDLL
00037 # define XDISPATCH_EXPORT __declspec(dllexport)
00038 # else
00039 # define XDISPATCH_EXPORT __declspec(dllimport)
00040 # endif
00041 # else
00042 # define XDISPATCH_EXPORT __attribute__((visibility("default")))
00043 # endif
00044 #endif
00045
00046 # define __XDISPATCH_BEGIN_NAMESPACE namespace xdispatch {
00047 # define __XDISPATCH_END_NAMESPACE }
00048
00049 # define __XDISPATCH_INDIRECT__
00050 # include "synchronized.h"
00051 # include "lambda_blocks.h"
00052 # include "base.h"
00053 # include "queue.h"
00054 # include "group.h"
00055 # include "semaphore.h"
00056 # include "timer.h"
00057 # undef __XDISPATCH_INDIRECT__
00058
00059 #undef XDISPATCH_EXPORT
00060
00061 #endif
00062
00063 #endif