I just wrote a console application which starts 4 threads.
each threads writes text to the console with writeln.
It seems to work fine...
Yet I am not sure if this is 100% thread safe ?
Any comments ?
--
http://www.mycgiserver.com/~skybuck
http://skybuck.soshost.net
I just tested some app on a slow p166.. it looked like it managled some
text.
procedure my_writeln( s : string );
begin
critical section.enter;
writeln( s );
critical section.leave;
end;
would probably solve it if one really cares :)
"Skybuck Flying" <nos...@hotmail.com> wrote in message
news:b3r1na$r7f$1...@news2.tilbu1.nb.home.nl...
--
Robert Cerny
"Skybuck Flying" <nos...@hotmail.com> wrote in message
news:b3r1na$r7f$1...@news2.tilbu1.nb.home.nl...
Multiple text devices ? Can you give a example of such a program ?
--
Robert Cerny
"Skybuck Flying" <nos...@hotmail.com> wrote in message
news:b47m4d$b48$1...@news4.tilbu1.nb.home.nl...
For proper console output, make your own wrappers for GetStdHandle() and
WriteFile(). (Hey, you can even implement your own
ScrollConsoleScreenBuffer() wrapper for fun!)
My all-in-all conclusion after nn years of Borland-loyalty is that Delphi
is a NICE language with its language and compiler, but the RTL kinda sucks.
Look at the various WinSock and ISAPI libraries. It makes me wanna puke.
- M.m.
Neh... I rather see borland implement turbo vision for delphi :D
> My all-in-all conclusion after nn years of Borland-loyalty is that Delphi
> is a NICE language with its language and compiler, but the RTL kinda
sucks.
> Look at the various WinSock and ISAPI libraries. It makes me wanna puke.
?