manatee-core-0.0.1: The core of Manatee.

Manatee.Toolkit.Gtk.Concurrent

Synopsis

Documentation

forkGuiIO :: IO a -> (a -> IO ()) -> IO (MVar a, ThreadId, ThreadId)Source

Fork GUI IO.

forkGuiIO_ :: IO a -> (a -> IO ()) -> IO ()Source

Similar forkGuiIO, except return ()

onGuiSignal :: MVar a -> (a -> IO ()) -> IO ThreadIdSource

Post GUI Action to Gtk+ thread when catch signal.

createViewChannel :: WidgetClass widget => TChan a -> widget -> IO (ViewChannel a)Source

Create view channel. If widget destroy, stop read broadcast channel.

listenViewChannel :: ViewChannel a -> (a -> IO ()) -> IO ()Source

Listen view channel.

listenBufferChannel :: TChan a -> (a -> IO ()) -> IO ()Source

Listen buffer channel.