confer/src/lock.h
2024-05-01 21:02:15 +03:00

10 lines
151 B
C

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