Skip to content

Commit d48c37c

Browse files
committed
Cleanup: Remove outdated workaround comments
The printf issue is specific to app_main after task_spawn, not within task functions themselves. Clean up misleading workaround comments. Task functions can printf normally - they run in their own context with proper stack and scheduler state.
1 parent 8e78c84 commit d48c37c

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

app/mutex.c

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@ static int currently_in_critical_section = 0;
1818
/* Enhanced Task A */
1919
void task_a(void)
2020
{
21-
/* WORKAROUND: Printf may hang - skip diagnostic */
2221
printf("Task A (ID %d) starting...\n", mo_task_id());
2322

2423
for (int i = 0; i < MAX_ITERATIONS; i++) {
@@ -71,7 +70,6 @@ void task_a(void)
7170
/* Enhanced Task B */
7271
void task_b(void)
7372
{
74-
/* WORKAROUND: Printf may hang - skip diagnostic */
7573
printf("Task B (ID %d) starting...\n", mo_task_id());
7674

7775
for (int i = 0; i < MAX_ITERATIONS; i++) {
@@ -132,7 +130,6 @@ void task_b(void)
132130
/* Simple monitor task */
133131
void monitor_task(void)
134132
{
135-
/* WORKAROUND: Printf may hang - skip diagnostic */
136133
printf("Monitor starting...\n");
137134

138135
int cycles = 0;

0 commit comments

Comments
 (0)