Swapped from using system call wrappers to just system calls and designing the C/C++ RT.
This commit is contained in:
37
include/ehs/system/Thread_W32.h
Normal file
37
include/ehs/system/Thread_W32.h
Normal file
@@ -0,0 +1,37 @@
|
||||
#pragma once
|
||||
|
||||
#include "BaseThread.h"
|
||||
|
||||
namespace ehs
|
||||
{
|
||||
class Thread : public BaseThread
|
||||
{
|
||||
private:
|
||||
void* hdl;
|
||||
|
||||
public:
|
||||
~Thread();
|
||||
|
||||
Thread();
|
||||
|
||||
Thread(UInt_64 stackSize, void* args, UInt_32 (*func)(void*));
|
||||
|
||||
Thread(Thread&& thread) noexcept;
|
||||
|
||||
Thread(const Thread& thread);
|
||||
|
||||
Thread& operator=(Thread&& thread) noexcept;
|
||||
|
||||
Thread& operator=(const Thread& thread);
|
||||
|
||||
void Detach() override;
|
||||
|
||||
void Join() override;
|
||||
|
||||
static UInt_32 GetCurrentId();
|
||||
|
||||
bool IsValid() const override;
|
||||
|
||||
static void HardSleep(UInt_32 milliseconds);
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user