mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2025-07-03 07:36:20 +00:00
27 lines
No EOL
487 B
C++
27 lines
No EOL
487 B
C++
// SPDX-FileCopyrightText: Copyright 2024 shadPS4 Emulator Project
|
|
// SPDX-License-Identifier: GPL-2.0-or-later
|
|
|
|
#pragma once
|
|
|
|
namespace Core {
|
|
|
|
class Thread {
|
|
public:
|
|
using ThreadFunc = void (*)(void*);
|
|
using PthreadFunc = void* (*)(void*);
|
|
|
|
Thread();
|
|
~Thread();
|
|
|
|
int Create(ThreadFunc func, void* arg);
|
|
void Exit();
|
|
|
|
void* GetHandle() {
|
|
return native_handle;
|
|
}
|
|
|
|
private:
|
|
void* native_handle;
|
|
};
|
|
|
|
} // namespace Core
|