Hoogle Search
Within LTS Haskell 24.68 (ghc-9.10.3)
Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.
myWeakThreadId :: IO WeakThreadIdgrisette Grisette.Internal.SymPrim.Prim.Internal.Utils Get a weak identifier to the current thread id.
weakThreadId :: ThreadId -> Word64grisette Grisette.Internal.SymPrim.Prim.Internal.Utils Get an id of a thread that doesn't prevent its garbage collection.
weakThreadRefAlive :: WeakThreadIdRef -> IO Boolgrisette Grisette.Internal.SymPrim.Prim.Internal.Utils Check if a weak reference to a thread id is still alive.
ButtonboxSpread :: ButtonBoxStylegtk3 Graphics.UI.Gtk.Abstract.ButtonBox No documentation available.
GrabAlreadyGrabbed :: GrabStatusgtk3 Graphics.UI.Gtk.Gdk.Gdk No documentation available.
ButtonboxSpread :: ButtonBoxStylegtk3 Graphics.UI.Gtk.General.Enums No documentation available.
GrabAlreadyGrabbed :: GrabStatusgtk3 Graphics.UI.Gtk.General.Enums No documentation available.
-
gtk3 Graphics.UI.Gtk.General.General Acquire the global Gtk lock.
- During normal operation, this lock is held by the thread from which all interaction with Gtk is performed. When calling mainGUI, the thread will release this global lock before it waits for user interaction. During this time it is, in principle, possible to use a different OS thread (any other Haskell thread that is bound to the Gtk OS thread will be blocked anyway) to interact with Gtk by explicitly acquiring the lock, calling Gtk functions and releasing the lock. However, the Gtk functions that are called from this different thread may not trigger any calls to the OS since this will lead to a crash on Windows (the Win32 API can only be used from a single thread). Since it is very hard to tell which function only interacts on Gtk data structures and which function call actual OS functions, it is best not to use this feature at all. A better way to perform updates in the background is to spawn a Haskell thread and to perform the update to Gtk widgets using postGUIAsync or postGUISync. These will execute their arguments from the main loop, that is, from the OS thread of Gtk, thereby ensuring that any Gtk and OS function can be called.
-
gtk3 Graphics.UI.Gtk.General.General Release the global Gtk lock.
- The use of this function is not recommended. See threadsEnter.
unsafeInitGUIForThreadedRTS :: IO [String]gtk3 Graphics.UI.Gtk.General.General No documentation available.