aboutsummaryrefslogtreecommitdiffstats
path: root/src/util.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/util.h')
-rw-r--r--src/util.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/util.h b/src/util.h
index 9f71d65a..9b4fd3ab 100644
--- a/src/util.h
+++ b/src/util.h
@@ -208,6 +208,9 @@ struct thread_info *getCurThread(void);
void yield(void);
void run_thread(void (*func)(void*), void *data);
void wait_threads(void);
+struct mutex_s { u32 isLocked; };
+void mutex_lock(struct mutex_s *mutex);
+void mutex_unlock(struct mutex_s *mutex);
void start_preempt(void);
void finish_preempt(void);
void check_preempt(void);