| 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. |
no outgoing calls
no test coverage detected