summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJustin R. Miller <incanus@codesorcery.net>2015-03-25 21:18:11 -0700
committerJustin R. Miller <incanus@codesorcery.net>2015-03-25 21:18:11 -0700
commitb04f68be9108b0e198608fda76e892dd1d3a5015 (patch)
treec3762fae9eb5be168ef174065c6850f4eeb56a5e
parentaa1eabe2305f5e44d573292bc965f63c85f96f40 (diff)
downloadqtlocation-mapboxgl-b04f68be9108b0e198608fda76e892dd1d3a5015.tar.gz
unique queue names per process & with bundle ID
-rw-r--r--platform/ios/MGLMapboxEvents.m6
1 files changed, 4 insertions, 2 deletions
diff --git a/platform/ios/MGLMapboxEvents.m b/platform/ios/MGLMapboxEvents.m
index 9ceac3902b..8a037f18f5 100644
--- a/platform/ios/MGLMapboxEvents.m
+++ b/platform/ios/MGLMapboxEvents.m
@@ -59,8 +59,10 @@ NSNumber *scale;
[[NSUserDefaults standardUserDefaults] registerDefaults:defaultsToRegister];
}
- _serialqPush = dispatch_queue_create("SERIALQPUSH", DISPATCH_QUEUE_SERIAL);
- _serialqFlush = dispatch_queue_create("SERIALQFLUSH", DISPATCH_QUEUE_SERIAL);
+ NSString *bundleID = [[NSBundle mainBundle] bundleIdentifier];
+ NSString *uniqueID = [[NSProcessInfo processInfo] globallyUniqueString];
+ _serialqPush = dispatch_queue_create([[NSString stringWithFormat:@"%@.%@.SERIALQPUSH", bundleID, uniqueID] UTF8String], DISPATCH_QUEUE_SERIAL);
+ _serialqFlush = dispatch_queue_create([[NSString stringWithFormat:@"%@.%@.SERIALQFLUSH", bundleID, uniqueID] UTF8String], DISPATCH_QUEUE_SERIAL);
// Configure Events Infrastructure
_queue = [[NSMutableArray alloc] init];