Align code style (#40)

- Mutex -> Mutex*
- Cleanup enum names
- Other small changes
This commit is contained in:
Ken Van Hoeylandt
2024-02-11 00:58:43 +01:00
committed by GitHub
parent 9327d61427
commit e0db8767c7
30 changed files with 117 additions and 121 deletions
+2 -2
View File
@@ -3,13 +3,13 @@
#include "mutex.h"
static int thread_with_mutex_parameter(void* parameter) {
Mutex mutex = (Mutex)parameter;
Mutex* mutex = (Mutex*)parameter;
tt_mutex_acquire(mutex, TtWaitForever);
return 0;
}
TEST_CASE("a mutex can block a thread") {
Mutex mutex = tt_mutex_alloc(MutexTypeNormal);
Mutex* mutex = tt_mutex_alloc(MutexTypeNormal);
tt_mutex_acquire(mutex, TtWaitForever);
Thread* thread = tt_thread_alloc_ex(