Re: Delay time to spawn new threads?
- From: Emmanuele Bassi <ebassi gmail com>
- To: Chris Vine <chris cvine freeserve co uk>
- Cc: gtk-app-devel-list list <gtk-app-devel-list gnome org>
- Subject: Re: Delay time to spawn new threads?
- Date: Thu, 28 Nov 2013 14:17:00 +0000
hi;
On 28 November 2013 11:09, Chris Vine <chris cvine freeserve co uk> wrote:
By the way, why not have your idle function return FALSE instead of
EXIT_SUCCESS? Both evaluate to 0, but returning FALSE is clearer.
EXIT_SUCCESS is a macro intended to provide a process return value
indicating successful execution of the whole process. (And could in
theory, though not in practice, be a value other than 0.)
GSourceFunc functions should return G_SOURCE_CONTINUE or
G_SOURCE_REMOVE; those are aliases for boolean values, but are much,
much clearer to read.
ciao,
Emmanuele.
--
W: http://www.emmanuelebassi.name
B: http://blogs.gnome.org/ebassi/
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]