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

Method syncPrivateData_other_thread

Engine/OfxEffectInstance.cpp:2778–2791  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2776}
2777
2778void
2779OfxEffectInstance::syncPrivateData_other_thread()
2780{
2781 if ( getApp()->isShowingDialog() ) {
2782 /*
2783 We may enter a situation where a plug-in called EffectInstance::message to show a dialog
2784 and would block the main thread until the user would click OK but Qt would request a paintGL() on the viewer
2785 because of focus changes. This would end-up in the interact draw action being called whilst the message() function
2786 did not yet return and may in some plug-ins cause deadlocks (happens in all Genarts Sapphire plug-ins).
2787 */
2788 return;
2789 }
2790 Q_EMIT syncPrivateDataRequested();
2791}
2792
2793void
2794OfxEffectInstance::onSyncPrivateDataRequested()

Callers 1

Calls 2

getAppFunction · 0.85
isShowingDialogMethod · 0.45

Tested by

no test coverage detected