#pragma once typedef enum lock_state { ALREADY_LOCKED = 1, LOCK_SUCCESS = 2, LOCK_ERROR = 3, } lock_st; lock_st lock(); void unlock();