00001 /* 00002 * Copyright (c) 2008-2009 Apple Inc. All rights reserved. 00003 * 00004 * @APPLE_APACHE_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 * @APPLE_APACHE_LICENSE_HEADER_END@ 00019 */ 00020 00021 /* 00022 * IMPORTANT: This header file describes INTERNAL interfaces to libdispatch 00023 * which are subject to change in future releases of Mac OS X. Any applications 00024 * relying on these interfaces WILL break. 00025 */ 00026 00027 #ifndef __DISPATCH_BENCHMARK__ 00028 #define __DISPATCH_BENCHMARK__ 00029 00030 #ifndef __DISPATCH_INDIRECT__ 00031 #error "Please #include <dispatch/dispatch.h> instead of this file directly." 00032 #include <dispatch/base.h> // for HeaderDoc 00033 #endif 00034 00035 __DISPATCH_BEGIN_DECLS 00036 00069 #ifdef __BLOCKS__ 00070 __OSX_AVAILABLE_STARTING(__MAC_10_6,__IPHONE_4_0) 00071 DISPATCH_EXPORT DISPATCH_NONNULL2 DISPATCH_NOTHROW 00072 uint64_t 00073 dispatch_benchmark(size_t count, void (^block)(void)); 00074 #endif 00075 00076 __OSX_AVAILABLE_STARTING(__MAC_10_6,__IPHONE_4_0) 00077 DISPATCH_EXPORT DISPATCH_NONNULL3 DISPATCH_NOTHROW 00078 uint64_t 00079 dispatch_benchmark_f(size_t count, void *ctxt, void (*func)(void *)); 00080 00081 __DISPATCH_END_DECLS 00082 00083 #endif