aboutsummaryrefslogtreecommitdiffstats
path: root/code/custom/4coder_system_helpers.cpp
blob: b831617d7d51c6fcf30004c179081198429c8e6b (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
/*
 * 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