diff options
| author | Tharo <17233964+Thar0@users.noreply.github.com> | 2022-04-09 01:20:23 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-04-08 20:20:23 -0400 |
| commit | 7068ad3703f2cd2e08e6661ab57c9b1877dbd4b2 (patch) | |
| tree | c32bfdfd9c0376f2cb3d1e26ebbf290878964868 /src/code/__osMalloc.c | |
| parent | 9984c267d9d7a8ab207e092b9fa9aa87c894f808 (diff) | |
Message Queues, Threads, and surroundings cleanup (#1178)
* message queues, threads, and surroundings cleanup
* Format, make the formatter prefer clang-format-11 if found
* Fix __osThreadTail type
* Q -> Queue, thread defines renamed
* Reformat, add missing NULL
* Suggested changes and further casting cleanup
* Reformat
* padmgr name fixes
Diffstat (limited to 'src/code/__osMalloc.c')
| -rw-r--r-- | src/code/__osMalloc.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/code/__osMalloc.c b/src/code/__osMalloc.c index 0b66eb353..ddf3024fa 100644 --- a/src/code/__osMalloc.c +++ b/src/code/__osMalloc.c @@ -56,15 +56,15 @@ void ArenaImpl_SetDebugInfo(ArenaNode* node, const char* file, s32 line, Arena* } void ArenaImpl_LockInit(Arena* arena) { - osCreateMesgQueue(&arena->lock, &sArenaLockMsg, 1); + osCreateMesgQueue(&arena->lockQueue, &sArenaLockMsg, 1); } void ArenaImpl_Lock(Arena* arena) { - osSendMesg(&arena->lock, NULL, OS_MESG_BLOCK); + osSendMesg(&arena->lockQueue, NULL, OS_MESG_BLOCK); } void ArenaImpl_Unlock(Arena* arena) { - osRecvMesg(&arena->lock, NULL, OS_MESG_BLOCK); + osRecvMesg(&arena->lockQueue, NULL, OS_MESG_BLOCK); } ArenaNode* ArenaImpl_GetNextBlock(ArenaNode* node) { |
