mirror of
https://github.com/Maschell/libutils.git
synced 2024-12-27 04:11:55 +01:00
Added GetThreadAffinity function to the CThread class.
This commit is contained in:
parent
a8305b55b4
commit
fb5331881b
@ -28,8 +28,9 @@ AsyncDeleter::~AsyncDeleter() {
|
||||
}
|
||||
|
||||
void AsyncDeleter::triggerDeleteProcess(void) {
|
||||
if(!deleterInstance)
|
||||
deleterInstance = new AsyncDeleter;
|
||||
if(!deleterInstance){
|
||||
return;
|
||||
}
|
||||
|
||||
//! to trigger the event after GUI process is finished execution
|
||||
//! this function is used to swap elements from one to next array
|
||||
|
@ -91,6 +91,13 @@ public:
|
||||
virtual bool isThreadRunning(void) const {
|
||||
return !isThreadSuspended() && !isThreadRunning();
|
||||
}
|
||||
|
||||
//! Gets the thread affinity.
|
||||
virtual u16 getThreadAffinity(void) const {
|
||||
if(pThread) return OSGetThreadAffinity(pThread);
|
||||
return 0;
|
||||
}
|
||||
|
||||
//! Shutdown thread
|
||||
virtual void shutdownThread(void) {
|
||||
//! wait for thread to finish
|
||||
|
Loading…
Reference in New Issue
Block a user