Hoogle Search

Within LTS Haskell 24.52 (ghc-9.10.3)

Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.

  1. mainContextRefThreadDefault :: (HasCallStack, MonadIO m) => m MainContext

    gi-glib GI.GLib.Structs.MainContext

    Gets the thread-default MainContext for this thread, as with mainContextGetThreadDefault, but also adds a reference to it with mainContextRef. In addition, unlike mainContextGetThreadDefault, if the thread-default context is the global-default context, this will return that MainContext (with a ref added to it) rather than returning Nothing. Since: 2.32

  2. rWLockReaderLock :: (HasCallStack, MonadIO m) => RWLock -> m ()

    gi-glib GI.GLib.Structs.RWLock

    Obtain a read lock on rwLock. If another thread currently holds the write lock on rwLock, the current thread will block until the write lock was (held and) released. If another thread does not hold the write lock, but is waiting for it, it is implementation defined whether the reader or writer will block. Read locks can be taken recursively. Calling rWLockReaderLock while the current thread already owns a write lock leads to undefined behaviour. Read locks however can be taken recursively, in which case you need to make sure to call rWLockReaderUnlock the same amount of times. It is implementation-defined how many read locks are allowed to be held on the same lock simultaneously. If the limit is hit, or if a deadlock is detected, a critical warning will be emitted. Since: 2.32

  3. rWLockReaderTrylock :: (HasCallStack, MonadIO m) => RWLock -> m Bool

    gi-glib GI.GLib.Structs.RWLock

    Tries to obtain a read lock on rwLock and returns True if the read lock was successfully obtained. Otherwise it returns False. Since: 2.32

  4. rWLockReaderUnlock :: (HasCallStack, MonadIO m) => RWLock -> m ()

    gi-glib GI.GLib.Structs.RWLock

    Release a read lock on rwLock. Calling rWLockReaderUnlock on a lock that is not held by the current thread leads to undefined behaviour. Since: 2.32

  5. sourceGetReadyTime :: (HasCallStack, MonadIO m) => Source -> m Int64

    gi-glib GI.GLib.Structs.Source

    Gets the "ready time" of source, as set by sourceSetReadyTime. Any time before or equal to the current monotonic time (including 0) is an indication that the source will fire immediately.

  6. sourceSetReadyTime :: (HasCallStack, MonadIO m) => Source -> Int64 -> m ()

    gi-glib GI.GLib.Structs.Source

    Sets a Source to be dispatched when the given monotonic time is reached (or passed). If the monotonic time is in the past (as it always will be if readyTime is 0) then the source will be dispatched immediately. If readyTime is -1 then the source is never woken up on the basis of the passage of time. Dispatching the source does not reset the ready time. You should do so yourself, from the source dispatch function. Note that if you have a pair of sources where the ready time of one suggests that it will be delivered first but the priority for the other suggests that it would be delivered first, and the ready time for both sources is reached during the same main context iteration, then the order of dispatch is undefined. It is a no-op to call this function on a Source which has already been destroyed with sourceDestroy. This API is only intended to be used by implementations of Source. Do not call this API on a Source that you did not create. Since: 2.36

  7. module GI.GLib.Structs.Thread

    The Thread struct represents a running thread. This struct is returned by threadNew or threadTryNew. You can obtain the Thread struct representing the current thread by calling threadSelf. GThread is refcounted, see threadRef and threadUnref. The thread represented by it holds a reference while it is running, and threadJoin consumes the reference that it is given, so it is normally not necessary to manage GThread references explicitly. The structure is opaque -- none of its fields may be directly accessed.

  8. newtype Thread

    gi-glib GI.GLib.Structs.Thread

    Memory-managed wrapper type.

  9. Thread :: ManagedPtr Thread -> Thread

    gi-glib GI.GLib.Structs.Thread

    No documentation available.

  10. newZeroThread :: MonadIO m => m Thread

    gi-glib GI.GLib.Structs.Thread

    Construct a Thread struct initialized to zero.

Page 485 of many | Previous | Next