MCPcopy Create free account
hub / github.com/BabylonJS/BabylonNative / AddHandler

Method AddHandler

Dependencies/AndroidExtensions/Source/Globals.cpp:31–35  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

29 using Handler = std::function<void(Args ...)>;
30 using Ticket = typename arcana::ticketed_collection<Handler>::ticket;
31 Ticket AddHandler(Handler&& handler)
32 {
33 std::lock_guard<std::recursive_mutex> guard{m_mutex};
34 return m_handlers.insert(handler, m_mutex);
35 }
36
37 void Fire(Args ... args)
38 {

Callers 3

AddPauseCallbackFunction · 0.80
AddResumeCallbackFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected