Fabric: Lost comment in EventQueue
Summary: Just a comment. Reviewed By: JoshuaGross Differential Revision: D13962465 fbshipit-source-id: 31780a8ccf02d768e3d4b91e7205ceb0ee10fedf
This commit is contained in:
parent
2332cb6fe2
commit
b0c8275369
|
@ -55,6 +55,9 @@ void EventQueue::onBeat(jsi::Runtime &runtime) const {
|
|||
}
|
||||
|
||||
// No need to lock `EventEmitter::DispatchMutex()` here.
|
||||
// The mutex protects from a situation when the `instanceHandle` can be
|
||||
// deallocated during accessing, but that's impossible at this point because
|
||||
// we have a strong pointer to it.
|
||||
for (const auto &event : queue) {
|
||||
if (event.eventTarget) {
|
||||
event.eventTarget->release(runtime);
|
||||
|
|
Loading…
Reference in New Issue