mirror of https://github.com/oxen-io/session-ios
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.
35 lines
836 B
Matlab
35 lines
836 B
Matlab
5 years ago
|
//
|
||
|
// Copyright (c) 2018 Open Whisper Systems. All rights reserved.
|
||
|
//
|
||
|
|
||
|
#import "OWSDispatch.h"
|
||
|
|
||
|
NS_ASSUME_NONNULL_BEGIN
|
||
|
|
||
|
@implementation OWSDispatch
|
||
|
|
||
|
+ (dispatch_queue_t)attachmentsQueue
|
||
|
{
|
||
|
static dispatch_once_t onceToken;
|
||
|
static dispatch_queue_t queue;
|
||
|
dispatch_once(&onceToken, ^{
|
||
|
queue = dispatch_queue_create("org.whispersystems.signal.attachments", NULL);
|
||
|
});
|
||
|
return queue;
|
||
|
}
|
||
|
|
||
|
+ (dispatch_queue_t)sendingQueue
|
||
|
{
|
||
|
static dispatch_once_t onceToken;
|
||
|
static dispatch_queue_t queue;
|
||
|
dispatch_once(&onceToken, ^{
|
||
|
dispatch_queue_attr_t attributes = dispatch_queue_attr_make_with_qos_class(DISPATCH_QUEUE_SERIAL, QOS_CLASS_USER_INITIATED, 0);
|
||
|
queue = dispatch_queue_create("org.whispersystems.signal.sendQueue", attributes);
|
||
|
});
|
||
|
return queue;
|
||
|
}
|
||
|
|
||
|
@end
|
||
|
|
||
|
NS_ASSUME_NONNULL_END
|