summaryrefslogtreecommitdiff
path: root/src/code/z_jpeg.c
diff options
context:
space:
mode:
authorDerek Hensley <hensley.derek58@gmail.com>2024-01-20 15:47:00 -0800
committerGitHub <noreply@github.com>2024-01-20 20:47:00 -0300
commit665353f3446db43d0efe0e9c6a9c80d16684da7a (patch)
tree55f492f4661570636c9056561beb8e8fa6135d3d /src/code/z_jpeg.c
parent732455fdef80ed641f0af30eb0e54d3a07ac876e (diff)
Irqmgr + scheduler Docs (#1527)
* irqmgr docs * Sched_FlushTaskQueue * scheduler docs
Diffstat (limited to 'src/code/z_jpeg.c')
-rw-r--r--src/code/z_jpeg.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/code/z_jpeg.c b/src/code/z_jpeg.c
index 5ccc5987d..a571e4d9d 100644
--- a/src/code/z_jpeg.c
+++ b/src/code/z_jpeg.c
@@ -65,8 +65,8 @@ void Jpeg_ScheduleDecoderTask(JpegContext* jpegCtx) {
jpegCtx->scTask.framebuffer = NULL;
jpegCtx->scTask.list.t = sJpegTask;
- osSendMesg(&gSchedContext.cmdQ, (OSMesg*)&jpegCtx->scTask, OS_MESG_BLOCK);
- Sched_SendEntryMsg(&gSchedContext); // osScKickEntryMsg
+ osSendMesg(&gScheduler.cmdQueue, (OSMesg*)&jpegCtx->scTask, OS_MESG_BLOCK);
+ Sched_SendNotifyMsg(&gScheduler); // osScKickEntryMsg
osRecvMesg(&jpegCtx->mq, NULL, OS_MESG_BLOCK);
}
@@ -223,7 +223,7 @@ s32 Jpeg_Decode(void* data, void* zbuffer, void* work, u32 workSize) {
}
osCreateMesgQueue(&jpegCtx.mq, &jpegCtx.msg, 1);
- MsgEvent_SendNullTask();
+ Sched_FlushTaskQueue();
jpegCtx.workBuf = workBuff;