diff options
Diffstat (limited to 'SmartDeviceLink/SDLGlobals.h')
-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 |