Add g_get_num_processors()
authorColin Walters <walters@verbum.org>
Mon, 17 Dec 2012 15:47:53 +0000 (10:47 -0500)
committerColin Walters <walters@verbum.org>
Tue, 18 Dec 2012 18:13:15 +0000 (13:13 -0500)
commit2149b29468bb99af3c29d5de61f75aad735082dc
treed5289aadb37a7d5b57db93c115f43a55e5a221ef
parented5accf16c03cc3ec5d54a457163a747d580b49d
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
docs/reference/glib/glib-sections.txt
glib/glib.symbols
glib/gthread.c
glib/gthread.h
glib/tests/spawn-multithreaded.c