Use NS_RETURNS_RETAINED macro to save time (#843)

* Use NS_RETURNS_RETAINED macro to save time

* Update changelog and do the thing with the license headers
This commit is contained in:
Adlai Holler
2018-03-21 08:13:09 -07:00
committed by GitHub
parent e954b1045a
commit 2b12654810
61 changed files with 239 additions and 184 deletions

View File

@@ -45,7 +45,7 @@ static void runLoopSourceCallback(void *info) {
ASDN::RecursiveMutex _queueLock;
}
+ (ASDeallocQueue *)sharedDeallocationQueue
+ (ASDeallocQueue *)sharedDeallocationQueue NS_RETURNS_RETAINED
{
static ASDeallocQueue *deallocQueue = nil;
static dispatch_once_t onceToken;
@@ -516,7 +516,7 @@ static int const kASASCATransactionQueueOrder = 1000000;
// and kASASCATransactionQueuePostOrder will apply interface change immediately.
static int const kASASCATransactionQueuePostOrder = 3000000;
+ (ASCATransactionQueue *)sharedQueue
+ (ASCATransactionQueue *)sharedQueue NS_RETURNS_RETAINED
{
static dispatch_once_t onceToken;
static ASCATransactionQueue *sharedQueue;