[Sandbox Broker] Synchronize full access operation
Full access should be synchronized, otherwise rapid access to the same path from different threads will cause crashes. Signed-off-by: Christopher Snowhill <kode54@gmail.com>
This commit is contained in:
parent
f567750d56
commit
66262c2a71
1 changed files with 9 additions and 9 deletions
|
@ -266,7 +266,6 @@ static SandboxBroker *kSharedSandboxBroker = nil;
|
||||||
if(!_entry) {
|
if(!_entry) {
|
||||||
_entry = [self recursivePathTest:folderUrl];
|
_entry = [self recursivePathTest:folderUrl];
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
if(_entry) {
|
if(_entry) {
|
||||||
[storage addObject:_entry];
|
[storage addObject:_entry];
|
||||||
|
@ -280,6 +279,7 @@ static SandboxBroker *kSharedSandboxBroker = nil;
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
- (void)endFolderAccess:(const void *)handle {
|
- (void)endFolderAccess:(const void *)handle {
|
||||||
if(!handle) return;
|
if(!handle) return;
|
||||||
|
|
Loading…
Reference in a new issue