mirror of
https://github.com/TextureGroup/Texture.git
synced 2026-04-07 19:17:39 +00:00
Simplify push_back GroupNotify (#1736)
This commit is contained in:
@@ -268,10 +268,7 @@ void ASAsyncTransactionQueue::GroupImpl::notify(dispatch_queue_t queue, dispatch
|
||||
if (_pendingOperations == 0) {
|
||||
dispatch_async(queue, block);
|
||||
} else {
|
||||
GroupNotify notify;
|
||||
notify._block = block;
|
||||
notify._queue = queue;
|
||||
_notifyList.push_back(notify);
|
||||
_notifyList.push_back({block, queue});
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user