SV: [fpc-pascal] writeln in threads on linux
florian at freepascal.org
Sun Jul 2 16:43:12 CEST 2006
Ole J. Røtne wrote:
>> -----Opprinnelig melding-----
>> Fra: fpc-pascal-bounces at lists.freepascal.org
>> [mailto:fpc-pascal-bounces at lists.freepascal.org] På vegne av
>> Florian Klaempfl
>> Sendt: 2. juli 2006 12:46
>> Til: FPC-Pascal users discussions
>> Emne: Re: [fpc-pascal] writeln in threads on linux
>>> And if this is a "wrong way" of doing this thing, could
>> someone tell
>>> me how it should be..
>> You probably want to guard the output with mutexes or semaphores.
>> Writing unsynchronized to a stream has always unexpected results.
> Did try to wrap both of the WriteLn() with
> Same result..
Please post the complete code.
More information about the fpc-pascal