| 88 | } |
| 89 | |
| 90 | void CnMemPool::Malloc(void **ptr, const size_t size) { |
| 91 | if (!initialized_) Init(); |
| 92 | cnmemStatus_t status = cnmemMalloc(ptr, size, NULL); |
| 93 | CHECK_EQ(status, cnmemStatus_t::CNMEM_STATUS_SUCCESS) |
| 94 | << " " << cnmemGetErrorString(status); |
| 95 | } |
| 96 | |
| 97 | void CnMemPool::Free(void *ptr) { |
| 98 | CHECK(initialized_) |
no outgoing calls