sc/mutex/mutex_example.c

16 lines
193 B
C
Raw Normal View History

2020-11-11 01:19:49 +03:00
#include "sc_mutex.h"
2021-02-07 22:31:04 +03:00
int main()
2020-11-11 01:19:49 +03:00
{
struct sc_mutex mutex;
sc_mutex_init(&mutex);
sc_mutex_lock(&mutex);
sc_mutex_unlock(&mutex);
sc_mutex_term(&mutex);
return 0;
}