diff options
author | Joel Fischer <joeljfischer@gmail.com> | 2020-08-06 08:41:58 -0400 |
---|---|---|
committer | Joel Fischer <joeljfischer@gmail.com> | 2020-08-06 08:41:58 -0400 |
commit | 74ed175c143bf3248618ad535147d79ba03db5bf (patch) | |
tree | 1ddacb13423b645ad3e305643b6de9c7b86d3bf9 | |
parent | d1cecc645690fe92351ebf800f7b0ce0c2f1aebb (diff) | |
download | sdl_ios-74ed175c143bf3248618ad535147d79ba03db5bf.tar.gz |
Add documentation to new methodbugfix/issue-1614-consolodate-serial-queue-logic
-rw-r--r-- | SmartDeviceLink/SDLGlobals.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/SmartDeviceLink/SDLGlobals.h b/SmartDeviceLink/SDLGlobals.h index 42b0cf927..321fc60b4 100644 --- a/SmartDeviceLink/SDLGlobals.h +++ b/SmartDeviceLink/SDLGlobals.h @@ -43,6 +43,9 @@ extern void *const SDLConcurrentQueueName; - (void)setDynamicMTUSize:(NSUInteger)maxMTUSize forServiceType:(SDLServiceType)serviceType; - (NSUInteger)mtuSizeForServiceType:(SDLServiceType)serviceType; +/// Calls a block on an SDL sub-queue of the internal serial SDLProcessingQueue. If the call to this method is already on that queue, the block will be run, if it is not, a `dispatch_sync` will occur to that queue first. +/// @param queue The queue to run on. The passed queue should be a sub-queue of the SDLProcessingQueue. If it is not and the call to this method occurs on the passed queue, a deadlock will occur because the check will not pass correctly. +/// @param block The block to run on the serial sub-queue. + (void)runSyncOnSerialSubQueue:(dispatch_queue_t)queue block:(void (^)(void))block; @end |