mirror of
https://github.com/FEX-Emu/FEX.git
synced 2026-10-10 04:03:44 +02:00
This is fundamentally a frontend only problem, and also Linux only. Moves it to the frontend where it belongs. There's likely more things in Allocator.cpp that can be moved to the frontend but this is the first thing. NFC
12 lines
382 B
C++
12 lines
382 B
C++
// SPDX-License-Identifier: MIT
|
|
#pragma once
|
|
|
|
namespace FEX::SBRKAllocations {
|
|
// Disable allocations through glibc's sbrk allocation method.
|
|
// Returns a pointer at the end of the sbrk region.
|
|
void* DisableSBRKAllocations();
|
|
|
|
// Allow sbrk again. Pass in the pointer returned by `DisableSBRKAllocations`
|
|
void ReenableSBRKAllocations(void* Ptr);
|
|
} // namespace FEX::SBRKAllocations
|