Skip to content

Commit 8f49405

Browse files
committed
Debug wait_timeout
1 parent 7d016c7 commit 8f49405

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/libAtomVM/opcodesswitch.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2539,6 +2539,9 @@ HOT_FUNC int scheduler_entry_point(GlobalContext *glb)
25392539
PROCESS_SIGNAL_MESSAGES();
25402540
#pragma GCC diagnostic pop
25412541
int needs_to_wait = 0;
2542+
if (context_get_flags(ctx, WaitingTimeoutExpired)) {
2543+
printf("OP_WAIT -- WaitingTimeoutExpired is already set\n");
2544+
}
25422545
if (context_get_flags(ctx, WaitingTimeout | WaitingTimeoutExpired) == 0) {
25432546
if (timeout != INFINITY_ATOM) {
25442547
scheduler_set_timeout(ctx, t);

0 commit comments

Comments
 (0)