[fpc-pascal]To thread or not to thread
cespern at free.fr
Mon Mar 3 23:11:01 CET 2003
I'm playing with threads by using the TThread object under Linux with
What is the equivalent to the sleep function found in Delphi ?
I tried nanosleep but the task assign to the thread seems to failed.
while not Terminated do begin
The task executed in the thread is the following (I'm using
gtk_widget_queue_draw_area (PGtkWidget(AsGObject),tl.x,tl.y,w+1, h+1);
Nothing happens until I click or press a key. Then the app draws all the
point since the last user event received !!
As i saw an example in GTK doc using phtread, I'm also evaluating the
pthread wrapper for FPC wrote by Boyan Krastev :
Does someone use it ?
More information about the fpc-pascal