Re: [PATCH] handle test method cancellation



On Fri, 2006-08-11 at 22:03 +0200, Christian Neumair wrote:
> The attached patch should fix bug 46127 [1]
> 
> I don't know any elegant/readable construct preserving the const
> modifiers. Any ideas?
> 
> [1] http://bugzilla.gnome.org/show_bug.cgi?id=46127

A nicer way in general would be to get the cancellation fd from
gnome_vfs_cancellation_get_fd() and sleep using e.g. g_poll with the
specified timeout and the fd in the poll as waiting for readable.

=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
 Alexander Larsson                                            Red Hat, Inc 
                   alexl redhat com    alla lysator liu se 
He's a shy dishevelled filmmaker haunted by memories of 'Nam. She's a 
disco-crazy cigar-chomping lawyer with an incredible destiny. They fight 
crime! 




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