Re: About gthread cancellation



On Sat, 2004-05-01 at 19:48, Davi de Castro Reis wrote:

> My doubt is: if I don't have g_thread_cancel, how can I implement this 
> simple server loop? The only other solution I can see is to use 
> no-blocking mode and select() with timeouts, which is rather ugly and 
> not desired if I do use threads. 

A select with a timeout of say a second shouldn't have any noticeable
impact on system load.  That's currently the only way to do it.

Attachment: signature.asc
Description: This is a digitally signed message part



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]