Merge nanoos
This commit is contained in:
14
nanoos/mutex.h
Normal file
14
nanoos/mutex.h
Normal file
@@ -0,0 +1,14 @@
|
||||
/*
|
||||
* Copyright 2022 Oleg Borodin <borodin@unix7.org>
|
||||
*/
|
||||
|
||||
|
||||
#include <stdint.h>
|
||||
|
||||
typedef struct {
|
||||
int32_t value;
|
||||
} mutex_t;
|
||||
|
||||
void mutex_init(mutex_t* mutex);
|
||||
int32_t mutex_lock(mutex_t* mutex);
|
||||
int32_t mutex_unlock(mutex_t* mutex);
|
||||
Reference in New Issue
Block a user