MCPcopy Create free account
hub / github.com/Detanup01/gbe_fork / SteamAPI_RunCallbacks

Function SteamAPI_RunCallbacks

dll/dll.cpp:589–594  ·  view source on GitHub ↗

SteamAPI_RunCallbacks is safe to call from multiple threads simultaneously, but if you choose to do this, callback code could be executed on any thread. One alternative is to call SteamAPI_RunCallbacks from the main thread only, and call SteamAPI_ReleaseCurrentThreadMemory regularly on other threads.

Source from the content-addressed store, hash-verified

587// One alternative is to call SteamAPI_RunCallbacks from the main thread only,
588// and call SteamAPI_ReleaseCurrentThreadMemory regularly on other threads.
589STEAMAPI_API void S_CALLTYPE SteamAPI_RunCallbacks()
590{
591 // PRINT_DEBUG_ENTRY();
592 get_steam_client()->RunCallbacks(true, false);
593 //std::this_thread::sleep_for(std::chrono::microseconds(1)); //fixes resident evil revelations lagging. (Seems to work fine without this right now, commenting out)
594}
595
596
597// Declares a callback member function plus a helper member variable which

Callers 2

mainFunction · 0.85
Steam_RunCallbacksFunction · 0.85

Calls 2

get_steam_clientFunction · 0.85
RunCallbacksMethod · 0.45

Tested by

no test coverage detected