mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-24 07:05:35 +00:00
Fix linking
This commit is contained in:
27
submodules/AsyncDisplayKit/Source/ASDispatch.h
Normal file
27
submodules/AsyncDisplayKit/Source/ASDispatch.h
Normal file
@@ -0,0 +1,27 @@
|
||||
//
|
||||
// ASDispatch.h
|
||||
// Texture
|
||||
//
|
||||
// Copyright (c) Facebook, Inc. and its affiliates. All rights reserved.
|
||||
// Changes after 4/13/2017 are: Copyright (c) Pinterest, Inc. All rights reserved.
|
||||
// Licensed under Apache 2.0: http://www.apache.org/licenses/LICENSE-2.0
|
||||
//
|
||||
|
||||
#import <Foundation/Foundation.h>
|
||||
#import <AsyncDisplayKit/ASBaseDefines.h>
|
||||
|
||||
/**
|
||||
* Like dispatch_apply, but you can set the thread count. 0 means 2*active CPUs.
|
||||
*
|
||||
* Note: The actual number of threads may be lower than threadCount, if libdispatch
|
||||
* decides the system can't handle it. In reality this rarely happens.
|
||||
*/
|
||||
AS_EXTERN void ASDispatchApply(size_t iterationCount, dispatch_queue_t queue, NSUInteger threadCount, NS_NOESCAPE void(^work)(size_t i));
|
||||
|
||||
/**
|
||||
* Like dispatch_async, but you can set the thread count. 0 means 2*active CPUs.
|
||||
*
|
||||
* Note: The actual number of threads may be lower than threadCount, if libdispatch
|
||||
* decides the system can't handle it. In reality this rarely happens.
|
||||
*/
|
||||
AS_EXTERN void ASDispatchAsync(size_t iterationCount, dispatch_queue_t queue, NSUInteger threadCount, NS_NOESCAPE void(^work)(size_t i));
|
||||
Reference in New Issue
Block a user