Subj : Re: killing thread To : comp.programming.threads From : Alexander Terekhov Date : Wed Aug 10 2005 05:48 pm Alexander Terekhov wrote: [...] > > After thread_execute calls pthread_cancel, I thought that the thread would be > > cancelled: instead thread_timer exists only when 200 seconds are passed. > > I could now rewrite my question: how can I put to sleep a thread and interrupt > > its execution? :-) > > http://sources.redhat.com/pthreads-win32/manual/pthread_delay_np.html If "_np" is a problem for you, roll your own portable version using pthread_cond_timedwait(). regards, alexander. .