Hoogle Search

Within LTS Haskell 24.69 (ghc-9.10.3)

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

  1. 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

  2. sourceSetStaticName :: (HasCallStack, MonadIO m) => Source -> Text -> m ()

    gi-glib GI.GLib.Structs.Source

    A variant of sourceSetName that does not duplicate the name, and can only be used with string literals. Since: 2.70

  3. stringSetSize :: (HasCallStack, MonadIO m) => String -> CSize -> m String

    gi-glib GI.GLib.Structs.String

    Sets the length of a String. If the length is less than the current length, the string will be truncated. If the length is greater than the current length, the contents of the newly added area are undefined. (However, as always, string->str[string->len] will be a nul byte.)

  4. threadPoolSetMaxIdleTime :: (HasCallStack, MonadIO m) => Word32 -> m ()

    gi-glib GI.GLib.Structs.ThreadPool

    This function will set the maximum interval that a thread waiting in the pool for new tasks can be idle for before being stopped. This function is similar to calling threadPoolStopUnusedThreads on a regular timeout, except this is done on a per thread basis. By setting interval to 0, idle threads will not be stopped. The default value is 15000 (15 seconds). Since: 2.10

  5. threadPoolSetMaxThreads :: (HasCallStack, MonadIO m) => ThreadPool -> Int32 -> m ()

    gi-glib GI.GLib.Structs.ThreadPool

    Sets the maximal allowed number of threads for pool. A value of -1 means that the maximal number of threads is unlimited. If pool is an exclusive thread pool, setting the maximal number of threads to -1 is not allowed. Setting maxThreads to 0 means stopping all work for pool. It is effectively frozen until maxThreads is set to a non-zero value again. A thread is never terminated while calling func, as supplied by g_thread_pool_new(). Instead the maximal number of threads only has effect for the allocation of new threads in threadPoolPush. A new thread is allocated, whenever the number of currently running threads in pool is smaller than the maximal number. error can be Nothing to ignore errors, or non-Nothing to report errors. An error can only occur when a new thread couldn't be created. Before version 2.32, this function did not return a success status.

  6. threadPoolSetMaxUnusedThreads :: (HasCallStack, MonadIO m) => Int32 -> m ()

    gi-glib GI.GLib.Structs.ThreadPool

    Sets the maximal number of unused threads to maxThreads. If maxThreads is -1, no limit is imposed on the number of unused threads. The default value is 2.

  7. timeZoneGetOffset :: (HasCallStack, MonadIO m) => TimeZone -> Int32 -> m Int32

    gi-glib GI.GLib.Structs.TimeZone

    Determines the offset to UTC in effect during a particular interval of time in the time zone tz. The offset is the number of seconds that you add to UTC time to arrive at local time for tz (ie: negative numbers for time zones west of GMT, positive numbers for east). Since: 2.26

  8. timeZoneNewOffset :: (HasCallStack, MonadIO m) => Int32 -> m TimeZone

    gi-glib GI.GLib.Structs.TimeZone

    Creates a TimeZone corresponding to the given constant offset from UTC, in seconds. This is equivalent to calling timeZoneNew with a string in the form [+|-]hh[:mm[:ss]]. It is possible for this function to fail if seconds is too big (greater than 24 hours), in which case this function will return the UTC timezone for backwards compatibility. To detect failures like this, use timeZoneNewIdentifier directly. Since: 2.58

  9. timerReset :: (HasCallStack, MonadIO m) => Timer -> m ()

    gi-glib GI.GLib.Structs.Timer

    This function is useless; it's fine to call timerStart on an already-started timer to reset the start time, so timerReset serves no purpose.

  10. type C_InitiallyUnownedClassSetPropertyFieldCallback = Ptr Object -> Word32 -> Ptr GValue -> Ptr GParamSpec -> IO ()

    gi-gobject GI.GObject.Callbacks

    Type for the callback on the (unwrapped) C side.

Page 1192 of many | Previous | Next