mtx_lock method

int mtx_lock(
  1. mtx_t mtx
)

Lock a mutex

Implementation

int mtx_lock(mtx_t mtx) {
  mtx.locked = true;
  return thrd_success;
}