libXDispatch 0.3.1
include/libdispatch/benchmark.h
Go to the documentation of this file.
00001 /*
00002 * Copyright (c) 2008-2009 Apple Inc. All rights reserved.
00003 * Copyright (c) 2011 MLBA. All rights reserved.
00004 *
00005 * @MLBA_OPEN_LICENSE_HEADER_START@
00006 *
00007 * Licensed under the Apache License, Version 2.0 (the "License");
00008 * you may not use this file except in compliance with the License.
00009 * You may obtain a copy of the License at
00010 * 
00011 *     http://www.apache.org/licenses/LICENSE-2.0
00012 * 
00013 * Unless required by applicable law or agreed to in writing, software
00014 * distributed under the License is distributed on an "AS IS" BASIS,
00015 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
00016 * See the License for the specific language governing permissions and
00017 * limitations under the License.
00018 *
00019 * @MLBA_OPEN_LICENSE_HEADER_END@
00020 */
00021 
00022 
00023 
00024 /*
00025  * IMPORTANT: This header file describes INTERNAL interfaces to libdispatch
00026  * which are subject to change in future releases of Mac OS X. Any applications
00027  * relying on these interfaces WILL break.
00028  */
00029 
00030 #ifndef __DISPATCH_BENCHMARK__
00031 #define __DISPATCH_BENCHMARK__
00032 
00033 #ifndef __DISPATCH_INDIRECT__
00034 #error "Please #include <dispatch/dispatch.h> instead of this file directly."
00035 #include <dispatch/base.h> // for HeaderDoc
00036 #endif
00037 
00038 __DISPATCH_BEGIN_DECLS
00039 
00072 #ifdef __BLOCKS__
00073 __OSX_AVAILABLE_STARTING(__MAC_10_6,__IPHONE_NA)
00074 DISPATCH_EXPORT DISPATCH_NONNULL2 DISPATCH_NOTHROW
00075 uint64_t
00076 dispatch_benchmark(size_t count, void (^block)(void));
00077 #endif
00078 
00079 __OSX_AVAILABLE_STARTING(__MAC_10_6,__IPHONE_NA)
00080 DISPATCH_EXPORT DISPATCH_NONNULL3 DISPATCH_NOTHROW
00081 uint64_t
00082 dispatch_benchmark_f(size_t count, void *ctxt, void (*func)(void *));
00083 
00084 __DISPATCH_END_DECLS
00085 
00086 #endif

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