SpiecsEngine
 
Loading...
Searching...
No Matches

◆ operator delete() [1/2]

void operator delete ( void * ptr)
noexcept

override delete operator.

Parameters
[in]ptrmemory pointer.

free memory using free before MemoryPool is initialized.

free memory using MemoryPool if is initialized.

Do nothing while exist program.

free memory using free default.

Definition at line 203 of file MemoryEntry.h.

204{
206 {
211 {
213 return;
214 }
215
220 {
222 return;
223 }
224
229 {
230 return;
231 }
232
236 default:
237 {
239 return;
240 }
241 }
242}
static void freeToOS(void *ptr)
free memory to OS.
static ProcessState GetProcessState()
Get ProcessState Instance.
Definition MemoryEntry.h:29
static void freeToPool(void *ptr)
free memory to MemoryPool.
Definition MemoryEntry.h:90

References Spices::BeforeEntry, Spices::Exit, Spices::MemoryEntry::freeToOS(), Spices::MemoryEntry::freeToPool(), Spices::MemoryEntry::GetProcessState(), and Spices::Run.