confer/src/lock.h

10 lines
151 B
C
Raw Normal View History

2024-05-01 18:02:15 +00:00
#pragma once
typedef enum lock_state {
ALREADY_LOCKED = 1,
LOCK_SUCCESS = 2,
LOCK_ERROR = 3,
} lock_st;
lock_st lock();
void unlock();