MCPcopy Create free account
hub / github.com/Rat431/ColdAPI_Steam / UnregisterCallback

Function UnregisterCallback

src/ColdAPI_Steam/CSteamCallbacks.cpp:61–80  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

59 Thread.unlock();
60 }
61 void UnregisterCallback(CCallbackBase* handler, int callback)
62 {
63 Thread.lock();
64
65 auto iter = CallbacksBuffer.begin();
66
67 // Loop untill we find the asked callback to remove based on the callback itself.
68 while (iter != CallbacksBuffer.end())
69 {
70 CCallbackBase* handleriter = *iter;
71 if (handleriter && handleriter == handler)
72 {
73 CallbacksBuffer.erase(iter);
74 break;
75 }
76 ++iter;
77 }
78
79 Thread.unlock();
80 }
81 void UnregisterCallResult(CCallbackBase* result, uint64_t call)
82 {
83 // Remove the callresult handler based on the ID.

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected