mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-10-28 15:02:17 +01:00
GThread - Inherit parent thread priority by default for new Win32 threads
This is the default behaviour on POSIX and having different behaviour between the two GThread implementations could lead to subtle problems.
This commit is contained in:
@@ -833,6 +833,14 @@ g_thread_proxy (gpointer data)
|
||||
* To free the struct returned by this function, use g_thread_unref().
|
||||
* Note that g_thread_join() implicitly unrefs the #GThread as well.
|
||||
*
|
||||
* New threads by default inherit their scheduler policy (POSIX) or thread
|
||||
* priority (Windows) of the thread creating the new thread.
|
||||
*
|
||||
* This behaviour changed in GLib 2.64: before threads on Windows were not
|
||||
* inheriting the thread priority but were spawned with the default priority.
|
||||
* Starting with GLib 2.64 the behaviour is now consistent between Windows and
|
||||
* POSIX and all threads inherit their parent thread's priority.
|
||||
*
|
||||
* Returns: the new #GThread
|
||||
*
|
||||
* Since: 2.32
|
||||
|
||||
Reference in New Issue
Block a user