Lines Matching refs:Mutex
95 Mutex::Mutex(Type type)
100 Mutex::~Mutex() {
104 void Mutex::Init() {
117 void Mutex::StaticInit() {
125 void Mutex::Destroy() {
136 void Mutex::Lock() {
146 bool Mutex::TryLock() {
157 void Mutex::Unlock() {
167 void Mutex::ReadLock() {
173 bool Mutex::TryReadLock() {
179 void Mutex::ReadUnlock() {
281 static_cast<Mutex*>(ev->ptr)->Init();
284 static_cast<Mutex*>(ev->ptr)->Destroy();
287 static_cast<Mutex*>(ev->ptr)->Lock();
290 ev->res = static_cast<Mutex*>(ev->ptr)->TryLock();
293 static_cast<Mutex*>(ev->ptr)->Unlock();
296 static_cast<Mutex*>(ev->ptr)->ReadLock();
299 ev->res = static_cast<Mutex*>(ev->ptr)->TryReadLock();
302 static_cast<Mutex*>(ev->ptr)->ReadUnlock();
409 void ScopedThread::Create(const Mutex &m) {
414 void ScopedThread::Destroy(const Mutex &m) {
419 void ScopedThread::Lock(const Mutex &m) {
424 bool ScopedThread::TryLock(const Mutex &m) {
430 void ScopedThread::Unlock(const Mutex &m) {
435 void ScopedThread::ReadLock(const Mutex &m) {
440 bool ScopedThread::TryReadLock(const Mutex &m) {
446 void ScopedThread::ReadUnlock(const Mutex &m) {