10 lines
151 B
C
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();
|