Ignore:
Timestamp:
Feb 8, 2011, 11:05:30 AM (14 years ago)
Author:
george
Message:
  • Modified: Optimalized microthread execution from main thread.
  • Fixed: Passthrough of WaitFor on already signaled event.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • MicroThreading/UPlatform.pas

    r156 r164  
    2828  {$IFDEF Windows}TimerValue: Int64;{$ENDIF}
    2929begin
    30   try
    31     NowPreciseLock.Acquire;
     30//  Result := Now;
     31  //try
     32    //NowPreciseLock.Acquire;
    3233    {$IFDEF Windows}
    3334    QueryPerformanceCounter(TimerValue);
     
    4243    {$ENDIF}
    4344
    44     Result := (Trunc(Now / OneSecond) + Frac(Result)) * OneSecond;
    45   finally
    46     NowPreciseLock.Release;
    47   end;
     45    Result := Result * OneSecond;
     46    //Result := (Trunc(Now / OneSecond) + Frac(Result)) * OneSecond;
     47  //finally
     48    //NowPreciseLock.Release;
     49  //end;
    4850end;
    4951
Note: See TracChangeset for help on using the changeset viewer.