Skip to content

Commit 6d26b36

Browse files
committed
Syscalls/Common/Timer: Remove lambda
1 parent ad5f0df commit 6d26b36

File tree

1 file changed

+12
-13
lines changed
  • Source/Tools/LinuxEmulation/LinuxSyscalls/Syscalls

1 file changed

+12
-13
lines changed

Source/Tools/LinuxEmulation/LinuxSyscalls/Syscalls/Timer.cpp

Lines changed: 12 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -6,32 +6,31 @@ tags: LinuxSyscalls|syscalls-shared
66
*/
77

88
#include "LinuxSyscalls/Syscalls.h"
9-
#include "LinuxSyscalls/Types.h"
109
#include "LinuxSyscalls/x64/Syscalls.h"
1110
#include "LinuxSyscalls/x32/Syscalls.h"
1211

1312
#include <FEXCore/IR/IR.h>
1413

1514
#include <stddef.h>
1615
#include <stdint.h>
17-
#include <signal.h>
1816
#include <sys/time.h>
19-
#include <time.h>
2017
#include <sys/syscall.h>
2118
#include <unistd.h>
2219

2320
namespace FEX::HLE {
24-
void RegisterTimer(FEX::HLE::SyscallHandler* Handler) {
25-
using namespace FEXCore::IR;
21+
auto alarm(FEXCore::Core::CpuStateFrame* Frame, unsigned int seconds) -> uint64_t {
22+
uint64_t Result = ::alarm(seconds);
23+
SYSCALL_ERRNO();
24+
}
2625

27-
REGISTER_SYSCALL_IMPL(alarm, [](FEXCore::Core::CpuStateFrame* Frame, unsigned int seconds) -> uint64_t {
28-
uint64_t Result = ::alarm(seconds);
29-
SYSCALL_ERRNO();
30-
});
26+
auto pause(FEXCore::Core::CpuStateFrame* Frame) -> uint64_t {
27+
uint64_t Result = ::pause();
28+
SYSCALL_ERRNO();
29+
}
3130

32-
REGISTER_SYSCALL_IMPL(pause, [](FEXCore::Core::CpuStateFrame* Frame) -> uint64_t {
33-
uint64_t Result = ::pause();
34-
SYSCALL_ERRNO();
35-
});
31+
void RegisterTimer(FEX::HLE::SyscallHandler* Handler) {
32+
using namespace FEXCore::IR;
33+
REGISTER_SYSCALL_IMPL(alarm, alarm);
34+
REGISTER_SYSCALL_IMPL(pause, pause);
3635
}
3736
} // namespace FEX::HLE

0 commit comments

Comments
 (0)