Ignore:
Timestamp:
Feb 7, 2011, 7:04:23 AM (14 years ago)
Author:
george
Message:
  • Added: Microthread context switching need to change exception stack as well. This need patch thread unit witch is part of system unit to make exception stack thread vars accesible.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • MicroThreading/Demo/UMainForm.pas

    r160 r161  
    369369begin
    370370  for I := 0 to MainForm.Iterations - 1 do begin
     371    try
    371372    Q := 0;
    372373    while Q < 100 do Inc(Q);
     
    381382    Completion := I / MainForm.Iterations;
    382383    Yield;
     384
     385    except
     386      Q := 0;
     387      raise  Exception.Create('Exception from microthread');
     388    end;
    383389  end;
    384390end;
Note: See TracChangeset for help on using the changeset viewer.