Stop the font thumbnailer eating all the CPU, and limit the resources to
2009-03-02 Bastien Nocera <hadess@hadess.net> * font-viewer/Makefile.am: * font-viewer/font-thumbnailer.c (main): * font-viewer/totem-resources.c (set_resource_limits), (time_monitor), (totem_resources_monitor_start), (totem_resources_monitor_stop): * font-viewer/totem-resources.h: Stop the font thumbnailer eating all the CPU, and limit the resources to 30 seconds and 256MB of RAM, which should be plenty (Closes: #573795) svn path=/trunk/; revision=9306
This commit is contained in:
parent
a84019b447
commit
f1a29fc6dc
5 changed files with 175 additions and 1 deletions
33
font-viewer/totem-resources.h
Normal file
33
font-viewer/totem-resources.h
Normal file
|
@ -0,0 +1,33 @@
|
|||
/*
|
||||
* Copyright (C) 2007 Bastien Nocera <hadess@hadess.net>
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation; either version 2 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program; if not, write to the Free Software
|
||||
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||
*
|
||||
* The Totem project hereby grant permission for non-gpl compatible GStreamer
|
||||
* plugins to be used and distributed together with GStreamer and Totem. This
|
||||
* permission are above and beyond the permissions granted by the GPL license
|
||||
* Totem is covered by.
|
||||
*
|
||||
* Monday 7th February 2005: Christian Schaller: Add exception clause.
|
||||
* See license_change file for details.
|
||||
*
|
||||
*/
|
||||
|
||||
#include <glib.h>
|
||||
|
||||
void totem_resources_monitor_start (const char *input,
|
||||
gint wall_clock_time);
|
||||
void totem_resources_monitor_stop (void);
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue