Browse Source

* Log continue result

Michaël Van Canneyt 1 year ago
parent
commit
64e7dcbc81
1 changed files with 13 additions and 0 deletions
  1. 13 0
      compiler/ctask.pas

+ 13 - 0
compiler/ctask.pas

@@ -230,6 +230,19 @@ begin
     if m2<>nil then
     if m2<>nil then
       firstwaiting:=m2;
       firstwaiting:=m2;
     end;
     end;
+  {$IFDEF DEBUG_CTASK}
+  Write(m.ToString,' state: ',m.state,', can continue: ',Result);
+  if result then
+    Writeln
+  else
+    begin
+    Write(' (First waiting: ');
+    If Assigned(FirstWaiting) then
+      Writeln(FirstWaiting.ToString,' )')
+    else
+      Writeln('<none>)');
+    end;
+  {$ENDIF}
 end;
 end;
 
 
 function ttask_handler.cancontinue(t : ttask_list; out firstwaiting : tmodule): boolean;
 function ttask_handler.cancontinue(t : ttask_list; out firstwaiting : tmodule): boolean;