Re: out-of-mem handler
- From: Sebastian Wilhelmi <wilhelmi ira uka de>
- To: gtk-devel-list redhat com
- Subject: Re: out-of-mem handler
- Date: Tue, 15 Feb 2000 08:53:49 +0000
Hi Havoc,
> The only reason I want a callback is to do this:
>
> while (TRUE)
> {
> gpointer p;
>
> sleep();
>
> p = g_malloc_try();
> if (p)
> return p;
> }
>
> (perhaps with a max number of tries for safety)
>
> I want this specifically for gnome-session. If other apps do this it's
> obviously very bad, but gnome-session should not be the app to fall
> over if memory runs out.
Yes, sure, but then please add that as gnome_session_malloc() to gnome_session
instead of adding it to glib.
Bye,
Sebastian
--
Sebastian Wilhelmi | här ovanför alla molnen
mailto:wilhelmi@ira.uka.de | är himmlen så förunderligt blå
http://goethe.ira.uka.de/~wilhelmi |
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]