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
00030 #include <dispatch/dispatch.h>
00031 #ifndef NSEC_PER_MSEC
00032 # define NSEC_PER_MSEC 1000000ll
00033 #endif
00034
00035 #if defined(__cplusplus)
00036
00037 #ifndef XDISPATCH_EXPORT
00038 # ifdef _WIN32
00039 # ifndef __GNUC__
00040 # pragma warning(disable: 4251)
00041 # endif
00042 # ifdef XDISPATCH_MAKEDLL
00043 # define XDISPATCH_EXPORT __declspec(dllexport)
00044 # else
00045 # define XDISPATCH_EXPORT __declspec(dllimport)
00046 # endif
00047 # define XDISPATCH_DEPRECATED(F) __declspec(deprecated) F
00048 # else
00049 # define XDISPATCH_EXPORT __attribute__((visibility("default")))
00050 # define XDISPATCH_DEPRECATED(F) F __attribute__ ((deprecated))
00051 # endif
00052 #endif
00053
00054 # define __XDISPATCH_BEGIN_NAMESPACE namespace xdispatch {
00055 # define __XDISPATCH_END_NAMESPACE }
00056
00057 # define __XDISPATCH_INDIRECT__
00058 # include "pointer.h"
00059 # include "synchronized.h"
00060 # include "lambda_blocks.h"
00061 # include "base.h"
00062 # include "once.h"
00063 # include "queue.h"
00064 # include "group.h"
00065 # include "semaphore.h"
00066 # include "source.h"
00067 # include "timer.h"
00068 # include "lambda_dispatch.h"
00069 # undef __XDISPATCH_INDIRECT__
00070
00071 #undef XDISPATCH_EXPORT
00072
00073 #endif
00074
00075
00076
00077
00078
00079
00080
00083 #endif