SayoriOS
0.3.3
sync.h
1
#ifndef SYNC_H
2
#define SYNC_H
3
4
#include "
common.h
"
5
6
typedef
bool
mutex_t;
7
8
/* Get mutex */
9
bool
mutex_get
(mutex_t* mutex,
bool
wait);
10
/* Release mutex */
11
void
mutex_release
(mutex_t* mutex);
12
13
#endif
common.h
Основные определения ядра
mutex_get
bool mutex_get(mutex_t *mutex, bool wait)
Получить мьютекс
Definition:
sync.c:19
mutex_release
void mutex_release(mutex_t *mutex)
Получить ближайщий свободный блок
Definition:
sync.c:36
kernel
include
sys
sync.h
Документация по SayoriOS. Последние изменения: Вс 8 Дек 2024 11:15:21. Создано системой
1.9.1