added isCurrentThread() member func
This commit is contained in:
@@ -47,3 +47,7 @@ void osiThread::start ()
|
||||
this->begin.signal ();
|
||||
}
|
||||
|
||||
bool osiThread::isCurrentThread () const
|
||||
{
|
||||
return ( threadGetIdSelf () == this->id );
|
||||
}
|
||||
|
||||
@@ -112,7 +112,7 @@ public:
|
||||
void setPriority (unsigned);
|
||||
bool priorityIsEqual (const osiThread &otherThread) const;
|
||||
bool isSuspended () const;
|
||||
|
||||
bool isCurrentThread () const;
|
||||
bool operator == (const osiThread &rhs) const;
|
||||
|
||||
/* these operate on the current thread */
|
||||
|
||||
Reference in New Issue
Block a user