Threadding issue

Joerg Sonnenberger joerg at britannica.bec.de
Thu Jul 27 05:15:52 PDT 2006


On Thu, Jul 27, 2006 at 08:52:25PM +0900, YONETANI Tomokazu wrote:
> 		static gboolean js_queue_cb (GtkWidget *widget, GdkEventClient *event,
> 																gpointer data)
> 		{
> 			exec_t *js;
> 			while ((js = g_async_queue_try_pop (js_queue)))
> 			{
> 				/* spin; play_exec gets this & the GDK lock in reverse order */
> 				while (pthread_mutex_trylock (&widgets_update_lock))
> 					sched_yield ();
> 				pthread_mutex_unlock (&widgets_update_lock); /* JS 'play()' needs it */
> 				engine_exec_obj (js->cmd, js->obj, js->cb, js->cb_data, js->ecb, js->src);
> 				free (js->cmd);
> 				free (js->src);
> 				free (js);
> 			}
> 			return TRUE;
> 		}

ARGH! IDIOTS! Ok, thanks Yonetani, I'll take care of this instance.

Joerg





More information about the Bugs mailing list