brought back functionality from previous builds but now cross-platform
This commit is contained in:
21
public/tier1/utlmutex.h
Normal file
21
public/tier1/utlmutex.h
Normal file
@@ -0,0 +1,21 @@
|
||||
#ifndef TIER1_UTL_MUTEX_H
|
||||
#define TIER1_UTL_MUTEX_H
|
||||
|
||||
#include "pthread.h"
|
||||
|
||||
class CUtlLock
|
||||
{
|
||||
public:
|
||||
CUtlLock();
|
||||
~CUtlLock();
|
||||
|
||||
CUtlLock(const CUtlLock&) = delete;
|
||||
CUtlLock& operator=(const CUtlLock&) = delete;
|
||||
|
||||
void Lock();
|
||||
void Unlock();
|
||||
private:
|
||||
pthread_mutex_t m_lock;
|
||||
};
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user