![]() |
Diarkis C++Client Library API Document
|
Interface class for Diarkis thread. More...
#include <Thread.h>
Public Member Functions | |
DiarkisThread () | |
~DiarkisThread () | |
void | SetLoggerFactory (std::shared_ptr< IDiarkisLoggerFactory > loggerFactory) |
Set logger class. More... | |
Diarkis::System::Result | Start (const DiarkisThreadParams ¶ms, void *args) |
Run the thread. More... | |
Diarkis::System::Result | Join () |
Wait for a thread to complete. More... | |
bool | Joinable () |
Whether it is possible to join a thread. More... | |
Diarkis::System::Result | Sleep (uint32_t msec) |
Speep the thread. More... | |
int | GetCurrentCPU () |
Get the CPU number on which the thread is running. More... | |
Diarkis::System::Result | yield () |
Yield the processor. More... | |
NativeThreadHandle | GetHandle () |
Interface class for Diarkis thread.
Diarkis::System::DiarkisThread::DiarkisThread | ( | ) |
Diarkis::System::DiarkisThread::~DiarkisThread | ( | ) |
void Diarkis::System::DiarkisThread::SetLoggerFactory | ( | std::shared_ptr< IDiarkisLoggerFactory > | loggerFactory | ) |
Set logger class.
Diarkis::System::Result Diarkis::System::DiarkisThread::Start | ( | const DiarkisThreadParams & | params, |
void * | args | ||
) |
Run the thread.
[in] | params | Thread parameters by DiarkisThreadParams |
[in] | args | Arguments for the thread function |
Diarkis::System::Result Diarkis::System::DiarkisThread::Join | ( | ) |
Wait for a thread to complete.
bool Diarkis::System::DiarkisThread::Joinable | ( | ) |
Whether it is possible to join a thread.
Diarkis::System::Result Diarkis::System::DiarkisThread::Sleep | ( | uint32_t | msec | ) |
Speep the thread.
[in] | msec | Duration to sleep (ms) |
int Diarkis::System::DiarkisThread::GetCurrentCPU | ( | ) |
Get the CPU number on which the thread is running.
Diarkis::System::Result Diarkis::System::DiarkisThread::yield | ( | ) |
Yield the processor.
Available only on PS4, PS5, and NX
NativeThreadHandle Diarkis::System::DiarkisThread::GetHandle | ( | ) |