XDispatch 0.7.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
dispatch.h
Go to the documentation of this file.
00001 /*
00002 * Copyright (c) 2011-2012 MLBA-Team. All rights reserved.
00003 *
00004 * @MLBA_OPEN_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 * @MLBA_OPEN_LICENSE_HEADER_END@
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) /* disable warning C4251 - * requires dll-interface */
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 /* defined(__cplusplus) */
00074 
00075 /*
00076 #ifdef _WIN32
00077 # pragma warning(default: 4251) // re-enable warning C4251 - we do not want to influence other code
00078 #endif
00079 */
00080 
00083 #endif /* XDISPATCH_H_ */

Generated on Tue Jun 12 2012 14:11:47 for XDispatch by Doxygen 1.8.0
© 2010-2012 MLBA (about | privacy) All Rights reserved.