composition: use g_main_context_set_dispatches_per_iteration ()

Let's hope this gets merged ...
This commit is contained in:
Mathieu Duponchelle 2014-07-18 04:01:25 +02:00 committed by Thibault Saunier
parent c391310539
commit baa7863da6

View file

@ -745,6 +745,7 @@ gnl_composition_init (GnlComposition * comp)
priv->objects_hash = g_hash_table_new (g_direct_hash, g_direct_equal);
priv->mcontext = g_main_context_new ();
g_main_context_set_dispatches_per_iteration (priv->mcontext, 1);
g_mutex_init (&priv->mcontext_lock);
priv->pending_io = g_hash_table_new (g_direct_hash, g_direct_equal);