mruby-task: rename constants for improved readability

Renamed constants to use more descriptive underscores:
- MRB_TASKSTATUS_* -> MRB_TASK_STATUS_*
- MRB_TASKREASON_* -> MRB_TASK_REASON_*

This improves code readability by making the constant names clearer.

Co-authored-by: Claude <noreply@anthropic.com>
This commit is contained in:
Yukihiro "Matz" Matsumoto
2025-10-09 16:57:08 +09:00
parent fd07c36feb
commit 1d90c19a36
2 changed files with 69 additions and 69 deletions
+9 -9
View File
@@ -15,21 +15,21 @@
* Task status values (bit-mapped)
*/
enum {
MRB_TASKSTATUS_DORMANT = 0x00, /* Not started or finished */
MRB_TASKSTATUS_READY = 0x02, /* Ready to run */
MRB_TASKSTATUS_RUNNING = 0x03, /* Currently executing */
MRB_TASKSTATUS_WAITING = 0x04, /* Waiting for condition */
MRB_TASKSTATUS_SUSPENDED = 0x08, /* Manually suspended */
MRB_TASK_STATUS_DORMANT = 0x00, /* Not started or finished */
MRB_TASK_STATUS_READY = 0x02, /* Ready to run */
MRB_TASK_STATUS_RUNNING = 0x03, /* Currently executing */
MRB_TASK_STATUS_WAITING = 0x04, /* Waiting for condition */
MRB_TASK_STATUS_SUSPENDED = 0x08, /* Manually suspended */
};
/*
* Task wait reason
*/
enum {
MRB_TASKREASON_NONE = 0x00, /* No specific reason */
MRB_TASKREASON_SLEEP = 0x01, /* Sleeping for time */
MRB_TASKREASON_MUTEX = 0x02, /* Waiting for mutex (reserved) */
MRB_TASKREASON_JOIN = 0x04, /* Waiting for another task */
MRB_TASK_REASON_NONE = 0x00, /* No specific reason */
MRB_TASK_REASON_SLEEP = 0x01, /* Sleeping for time */
MRB_TASK_REASON_MUTEX = 0x02, /* Waiting for mutex (reserved) */
MRB_TASK_REASON_JOIN = 0x04, /* Waiting for another task */
};
/*