50 |
|
IBTypes ,SysUtils, Classes, |
51 |
|
{$IFDEF WINDOWS } |
52 |
|
Windows |
53 |
< |
{$ELSE} |
54 |
< |
unix |
53 |
> |
{$ENDIF} |
54 |
> |
{$IFDEF UNIX} |
55 |
> |
cthreads, unix |
56 |
|
{$ENDIF} |
57 |
|
; |
58 |
|
|
845 |
|
if FMsgs.Items[0] is TReleaseObject then |
846 |
|
begin |
847 |
|
{$IFDEF DEBUG}writeln('Post Release');{$ENDIF} |
848 |
< |
Synchronize(PostRelease); |
848 |
> |
if not Terminated then |
849 |
> |
Synchronize(PostRelease); |
850 |
|
end |
851 |
|
else |
852 |
|
{ Otherwise write the TraceObject to the buffer } |
1100 |
|
not ((st.FMsg = ' ') and (st.FDataType = tfMisc)) then |
1101 |
|
begin |
1102 |
|
{$IFDEF DEBUG}writeln('Sending Message to Monitors');{$ENDIF} |
1103 |
< |
Synchronize(AlertMonitors); |
1103 |
> |
if not Terminated then |
1104 |
> |
Synchronize(AlertMonitors); |
1105 |
|
end; |
1106 |
|
end; |
1107 |
|
{$IFDEF DEBUG}writeln('Read Thread Ends');{$ENDIF} |