From 5e669560ebee9169f1b1d3ce2c7fcc50bbb92cc6 Mon Sep 17 00:00:00 2001 From: HASUMI Hitoshi Date: Thu, 28 May 2026 19:07:20 +0900 Subject: [PATCH] Amend field position to pack effectively --- mrbgems/mruby-task/include/task.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mrbgems/mruby-task/include/task.h b/mrbgems/mruby-task/include/task.h index d9c458629..6a464eb9c 100644 --- a/mrbgems/mruby-task/include/task.h +++ b/mrbgems/mruby-task/include/task.h @@ -48,6 +48,7 @@ typedef struct mrb_task { uint8_t priority; /* Priority (0-255, 0=highest) */ uint8_t status; /* Current status (TASKSTATUS enum) */ uint8_t reason; /* Wait reason (TASKREASON enum) */ + volatile uint8_t timeslice; /* Remaining ticks while RUNNING */ mrb_value name; /* Optional task name */ /* Wait-specific data - mutually exclusive based on reason field */ @@ -60,7 +61,6 @@ typedef struct mrb_task { mrb_value self; /* Ruby Task object reference */ - volatile uint8_t timeslice; /* Remaining ticks while RUNNING */ mrb_value result; /* Task return value */ struct mrb_context c; /* Execution context (stack, callinfo, etc) */