mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-22 22:25:57 +00:00
Document re-entrancy hazard in ASPendingStateController
This commit is contained in:
@@ -79,6 +79,13 @@
|
||||
[self performSelectorOnMainThread:@selector(flushNow) withObject:nil waitUntilDone:NO modes:@[ NSRunLoopCommonModes ]];
|
||||
}
|
||||
|
||||
/**
|
||||
* NOTE: There is a small re-entrancy hazard here.
|
||||
* If the user gives us a subclass of UIView/CALayer that
|
||||
* adds side-effects to property sets, and one side effect
|
||||
* waits on a background thread that sets a view/layer property
|
||||
* on a loaded node, then we've got a deadlock.
|
||||
*/
|
||||
- (void)flushNow
|
||||
{
|
||||
ASDN::MutexLocker l(_lock);
|
||||
|
||||
Reference in New Issue
Block a user