MCPcopy Create free account
hub / github.com/NatronGitHub/Natron / syncPrivateData_other_thread

Method syncPrivateData_other_thread

Engine/OfxEffectInstance.cpp:2792–2805  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2790}
2791
2792void
2793OfxEffectInstance::syncPrivateData_other_thread()
2794{
2795 if ( getApp()->isShowingDialog() ) {
2796 /*
2797 We may enter a situation where a plug-in called EffectInstance::message to show a dialog
2798 and would block the main thread until the user would click OK but Qt would request a paintGL() on the viewer
2799 because of focus changes. This would end-up in the interact draw action being called whilst the message() function
2800 did not yet return and may in some plug-ins cause deadlocks (happens in all Genarts Sapphire plug-ins).
2801 */
2802 return;
2803 }
2804 Q_EMIT syncPrivateDataRequested();
2805}
2806
2807void
2808OfxEffectInstance::onSyncPrivateDataRequested()

Callers 1

Calls 2

getAppFunction · 0.85
isShowingDialogMethod · 0.45

Tested by

no test coverage detected