libXDispatch 0.5
include/xdispatch/dispatch.h
Go to the documentation of this file.
00001 /*
00002 * Copyright (c) 2011 MLBA. 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 
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 # include "source.h"
00058 # undef __XDISPATCH_INDIRECT__
00059 
00060 #undef XDISPATCH_EXPORT
00061 
00062 #endif /* defined(__cplusplus) */
00063 
00064 #endif /* XDISPATCH_H_ */

Generated on Wed Feb 22 2012 19:54:05 for libXDispatch by Doxygen 1.7.4
Content © 2011-2012 MLBA (about | privacy) – Design © 2010-2012 Emzeat. All Rights reserved.