SSemaphore basic implementation
Set for RSX
This commit is contained in:
+1
-10
@@ -6,6 +6,7 @@
|
||||
#include <mutex>
|
||||
#include <atomic>
|
||||
#include <condition_variable>
|
||||
#include <Utilities/SSemaphore.h>
|
||||
|
||||
class ThreadExec;
|
||||
|
||||
@@ -138,16 +139,6 @@ public:
|
||||
bool IsBusy() const { return m_busy; }
|
||||
};
|
||||
|
||||
static __forceinline bool SemaphorePostAndWait(rSemaphore& sem)
|
||||
{
|
||||
if(sem.TryWait() != rSEMA_BUSY) return false;
|
||||
|
||||
sem.Post();
|
||||
sem.Wait();
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
/*
|
||||
class StepThread : public ThreadBase
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user