aboutsummaryrefslogtreecommitdiffstats
path: root/build/4coder_byp/custom/4coder_system_helpers.cpp
blob: 91dc355d66e43bb068eabda90aac5ccd1c7989fd (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
/*
 * 4coder_system_types.h - Implementation of universal (cross platform) helpers
 */

// TOP

Mutex_Lock::Mutex_Lock(System_Mutex m){
 system_mutex_acquire(m);
 this->mutex = m;
 }

 Mutex_Lock::~Mutex_Lock(){
 system_mutex_release(this->mutex);
 }

 Mutex_Lock::operator System_Mutex(){
 return(this->mutex);
}

// BOTTOM