You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
|
//
|
|
|
|
|
// Copyright (c) 2017 Open Whisper Systems. All rights reserved.
|
|
|
|
|
//
|
|
|
|
|
|
|
|
|
|
NS_ASSUME_NONNULL_BEGIN
|
|
|
|
|
|
|
|
|
|
@interface OWSDispatch : NSObject
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Attachment downloading
|
|
|
|
|
*/
|
|
|
|
|
+ (dispatch_queue_t)attachmentsQueue;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Signal protocol session state must be coordinated on a serial queue. This is sometimes used synchronously,
|
|
|
|
|
* so never dispatching sync *from* this queue to avoid deadlock.
|
|
|
|
|
*/
|
|
|
|
|
+ (dispatch_queue_t)sessionStoreQueue;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Serial message sending queue
|
|
|
|
|
*/
|
|
|
|
|
+ (dispatch_queue_t)sendingQueue;
|
|
|
|
|
|
|
|
|
|
@end
|
|
|
|
|
|
|
|
|
|
// This macro is intended for use in Objective-C.
|
|
|
|
|
#define OWSAssertIsOnMainThread() OWSCAssert([NSThread isMainThread])
|
|
|
|
|
|
|
|
|
|
// This function is intended for use in Swift.
|
|
|
|
|
void AssertIsOnMainThread(void);
|
|
|
|
|
|
|
|
|
|
NS_ASSUME_NONNULL_END
|