mirror of https://github.com/GNOME/gimp.git
app: remove gimp_get_number_of_processors(), use g_get_num_processors()
This commit is contained in:
parent
66ff5dd70b
commit
a7dc8d4429
app
|
@ -128,7 +128,7 @@ gimp_gegl_config_class_init (GimpGeglConfigClass *klass)
|
|||
GIMP_PARAM_STATIC_STRINGS |
|
||||
GIMP_CONFIG_PARAM_RESTART);
|
||||
|
||||
num_processors = gimp_get_number_of_processors ();
|
||||
num_processors = g_get_num_processors ();
|
||||
|
||||
#ifdef GIMP_UNSTABLE
|
||||
num_processors = num_processors * 2;
|
||||
|
|
|
@ -330,27 +330,6 @@ gimp_get_pid (void)
|
|||
return (gint) getpid ();
|
||||
}
|
||||
|
||||
gint
|
||||
gimp_get_number_of_processors (void)
|
||||
{
|
||||
gint retval = NUM_PROCESSORS_DEFAULT;
|
||||
|
||||
#ifdef G_OS_UNIX
|
||||
#if defined(HAVE_UNISTD_H) && defined(_SC_NPROCESSORS_ONLN)
|
||||
retval = sysconf (_SC_NPROCESSORS_ONLN);
|
||||
#endif
|
||||
#endif
|
||||
#ifdef G_OS_WIN32
|
||||
SYSTEM_INFO system_info;
|
||||
|
||||
GetSystemInfo (&system_info);
|
||||
|
||||
retval = system_info.dwNumberOfProcessors;
|
||||
#endif
|
||||
|
||||
return retval;
|
||||
}
|
||||
|
||||
guint64
|
||||
gimp_get_physical_memory_size (void)
|
||||
{
|
||||
|
|
|
@ -59,7 +59,6 @@ gint64 gimp_parasite_get_memsize (GimpParasite *parasite,
|
|||
gint64 *gui_size);
|
||||
|
||||
gint gimp_get_pid (void);
|
||||
gint gimp_get_number_of_processors (void);
|
||||
guint64 gimp_get_physical_memory_size (void);
|
||||
gchar * gimp_get_backtrace (void);
|
||||
gchar * gimp_get_default_language (const gchar *category);
|
||||
|
|
Loading…
Reference in New Issue