Doric bridge
This commit is contained in:
@@ -44,6 +44,14 @@ - (void)createContext:(DoricContext *)context script:(NSString *)script source:(
|
||||
});
|
||||
}
|
||||
|
||||
- (DoricContext *)getContext:(NSString *)contextId {
|
||||
__block DoricContext *context;
|
||||
dispatch_sync(self.mapQueue, ^{
|
||||
NSValue *value = [self.doricContextMap valueForKey:contextId];
|
||||
context = value.nonretainedObjectValue;
|
||||
});
|
||||
return context;
|
||||
}
|
||||
|
||||
- (void)destroyContext:(DoricContext *)context {
|
||||
NSString *contextId = context.contextId;
|
||||
|
||||
Reference in New Issue
Block a user