0
0
mirror of https://github.com/termux/termux-packages.git synced 2024-11-24 13:06:15 +00:00
termux-packages/disabled-packages/fex/Source-Tools-LinuxEmulation-LinuxSyscalls-Utils.patch
tqfx 740eea08b5
fex: Disabled (#19893)
* bump(main/fex): 202404

* fex: Disabled
  Refer https://wiki.fex-emu.com/index.php/Termux
2024-04-24 20:01:29 +08:00

20 lines
1005 B
Diff

diff --git a/Source/Tools/LinuxEmulation/LinuxSyscalls/Utils/Threads.cpp b/Source/Tools/LinuxEmulation/LinuxSyscalls/Utils/Threads.cpp
index d49f05c..fb7732f 100644
--- a/Source/Tools/LinuxEmulation/LinuxSyscalls/Utils/Threads.cpp
+++ b/Source/Tools/LinuxEmulation/LinuxSyscalls/Utils/Threads.cpp
@@ -31,8 +31,13 @@ namespace FEX::LinuxEmulation::Threads {
// Keep the first item in the stack pool
void *Ptr{};
- for (auto it = DeadStackPool.begin(); it != DeadStackPool.end();) {
+ /*
+ /home/builder/.termux-build/fex/src/Source/Tools/LinuxEmulation/LinuxSyscalls/Utils/Threads.cpp: error: no member named 'atomic_ref' in namespace 'std'
auto Ready = std::atomic_ref<bool>(it->ReadyToBeReaped);
+ ~~~~~^
+ */
+ for (auto it = DeadStackPool.begin(); it != DeadStackPool.end();) {
+ std::atomic<bool> Ready(it->ReadyToBeReaped);
bool ReadyToBeReaped = Ready.load();
if (Ptr == nullptr && ReadyToBeReaped) {
Ptr = it->Ptr;