aboutsummaryrefslogtreecommitdiffstats
path: root/build/4coder_byp/custom/4coder_system_helpers.cpp
blob: 51731bdeaa5e0c40b5f6ad18caf7e0ccb91e2a45 (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