MCPcopy Create free account
hub / github.com/SpartanJ/eepp / ensureMainThread

Method ensureMainThread

src/eepp/scene/node.cpp:1637–1648  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1635}
1636
1637bool Node::ensureMainThread( Actions::Runnable::RunnableFunc runnable,
1638 const Action::UniqueID& uniqueIdentifier ) {
1639 if ( Engine::isMainThread() ) {
1640 runnable();
1641 return true;
1642 } else {
1643 Action* action = Actions::Runnable::New( std::move( runnable ) );
1644 action->setTag( uniqueIdentifier );
1645 runAction( action );
1646 }
1647 return false;
1648}
1649
1650void Node::setTimeout( Actions::Runnable::RunnableFunc runnable, const Time& delay,
1651 const Action::UniqueID& uniqueIdentifier ) {

Callers 9

updateEditorTabTitleMethod · 0.80
onCodeEditorCreatedMethod · 0.80
runBuildMethod · 0.80
addNotificationMethod · 0.80
addShowRequestMethod · 0.80
initGlobalSearchBarMethod · 0.80
onInitMethod · 0.80
mainFunction · 0.80

Calls 2

setTagMethod · 0.80
NewFunction · 0.50

Tested by

no test coverage detected