[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: GTK+/Swing: Multithreading



SEGV <mlepage@cgocable.net> writes:

> However, Swing has two useful utility functions: InvokeLater and
> InvokeAndWait.  Each requires a Runnable, which is to say it
> executes arbitrary code; the former at a later time, the latter in a
> blocking call. That code is executed in the context of the
> event-dispatch thread.
> 
> This means that a non-UI thread has a means of invoking UI
> code. This strikes me as being an adequately elegant solution to the
> problem of accessing the UI from a non-UI thread in Swing.
> 
> So my question is simple: is there a similar facility in GTK+?

gtk_input_add(). (see gtk+'s tutorial about IO for more info)

-- 
-- Tero Pulkkinen -- terop@modeemi.cs.tut.fi --



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]