--- nono/vm/scheduler.cpp 2026/04/29 17:04:28 1.1.1.1 +++ nono/vm/scheduler.cpp 2026/04/29 17:04:29 1.1.1.2 @@ -26,7 +26,7 @@ Scheduler::Scheduler() { logname = "scheduler"; devname = "Scheduler"; - monitor.Init(70, 19); + monitor.Init(68, 30); eventlist.clear(); } @@ -203,7 +203,7 @@ Scheduler::ThreadRun() evcs.unlock(); // コールバック - putlog(2, "イベント '%s' 時刻到達", e->name.c_str()); + putlog(2, "イベント '%s' 時刻到達", e->GetName().c_str()); ((e->dev)->*(e->func))(e->code); // 同時刻のイベントがあるかも知れないのでなくなるまで調べる @@ -312,7 +312,7 @@ Scheduler::AddEvent(Event *newev) gMPU->Release(); putlog(2, "イベント '%s' %s %d.%03d usec 後", - newev->name.c_str(), + newev->GetName().c_str(), updated ? "更新" : "追加", (int)(newev->time / 1000), (int)(newev->time % 1000)); @@ -343,7 +343,7 @@ Scheduler::DelEvent(Event *event) // そのまま 1msec 走って問題ない。 if (found) { - putlog(2, "イベント '%s' 削除", event->name.c_str()); + putlog(2, "イベント '%s' 削除", event->GetName().c_str()); } } @@ -425,15 +425,15 @@ Scheduler::MonitorUpdate() (int)relratio, ((int)(relratio * 10) % 10)); // 0 1 2 3 4 5 6 - // 01234567890123456789012345678901234567890123456789012345 - // Set Time Remain Time Name Code - // 3.123'456'789 3.123'456'789 0123456789012345 $01234567 + // 0123456789012345678901234567890123456789012345678901234567890123456 + // Set Time Remain Time Description Code + // 3.123'456'789 3.123'456'789 0123456789012345678901234 $01234567 x = 0; y++; monitor.Print(x, y, "Set Time"); monitor.Print(x + 16, y, "Remain Time"); - monitor.Print(x + 32, y, "Name"); - monitor.Print(x + 49, y, "Code"); + monitor.Print(x + 32, y, "Description"); + monitor.Print(x + 58, y, "Code"); y++; for (const auto& e : gEvents) { uint64 rem; @@ -446,7 +446,7 @@ Scheduler::MonitorUpdate() rem = 0; } monitor.Print(x, y++, attr, - "%3u.%03u'%03u'%03u %3u.%03u'%03u'%03u %-16s $%08x", + "%3u.%03u'%03u'%03u %3u.%03u'%03u'%03u %-25s $%08x", (uint)(e->time / (1000 * 1000 * 1000)), (uint)((e->time / 1000 / 1000) % 1000), (uint)((e->time / 1000) % 1000), @@ -455,7 +455,7 @@ Scheduler::MonitorUpdate() (uint)((rem / 1000 / 1000) % 1000), (uint)((rem / 1000) % 1000), (uint)(rem % 1000), - e->name.c_str(), + e->GetName().c_str(), e->code); }