mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-08-22 17:08:53 +02:00
Add g_get_num_processors()
Based on a patch from John Cupitt <jcupitt@gmail.com> Useful for thread pools which should scale to number of processors. See https://bugzilla.gnome.org/show_bug.cgi?id=687223 https://bugzilla.gnome.org/show_bug.cgi?id=614930
This commit is contained in:
@@ -650,6 +650,9 @@ g_pointer_bit_lock
|
||||
g_pointer_bit_trylock
|
||||
g_pointer_bit_unlock
|
||||
|
||||
<SUBSECTION>
|
||||
g_get_num_processors
|
||||
|
||||
<SUBSECTION Private>
|
||||
G_LOCK_NAME
|
||||
atexit
|
||||
|
Reference in New Issue
Block a user