| 328 | } |
| 329 | |
| 330 | void Device::memoryMonitor(ssize_t bytes, bool post) |
| 331 | { |
| 332 | if (State::memory_monitor_function && bytes != 0) { |
| 333 | if (!State::memory_monitor_function(State::memory_monitor_userptr,bytes,post)) { |
| 334 | if (bytes > 0) { // only throw exception when we allocate memory to never throw inside a destructor |
| 335 | throw_RTCError(RTC_ERROR_OUT_OF_MEMORY,"memory monitor forced termination"); |
| 336 | } |
| 337 | } |
| 338 | } |
| 339 | } |
| 340 | |
| 341 | size_t getMaxNumThreads() |
| 342 | { |
no outgoing calls
no test coverage detected