Re: [fpc-pascal]To thread or not to thread

2003-03-04 Thread Christophe Espern
Le lun 03/03/2003 à 23:11, Christophe Espern a écrit : Hello, After a short night : > I tried nanosleep but the task assign to the thread seems to failed. I confirm : nanosleep works well. The task has a problem. > The task executed in the thread is the following (I'm using >

[fpc-pascal]To thread or not to thread

2003-03-03 Thread Christophe Espern
Hello, I'm playing with threads by using the TThread object under Linux with FPC 1.06. What is the equivalent to the sleep function found in Delphi ? I tried nanosleep but the task assign to the thread seems to failed. procedure TVAProcess.Execute; var tm:timespec; begin while not Terminated