Movatterモバイル変換


[0]ホーム

URL:


base-4.12.0.0: Basic libraries

Safe HaskellTrustworthy
LanguageHaskell2010

GHC.Event

Contents

Description

This module provides scalable event notification for file descriptors and timeouts.

This module should be considered GHC internal.

  • ---------------------------------------------------------------------------
Synopsis

Types

dataEventManagerSource#

The event manager state.

dataTimerManagerSource#

The event manager state.

Creation

getSystemEventManager ::IO (MaybeEventManager)Source#

Retrieve the system event manager for the capability on which the calling thread is running.

This function always returnsJust the current thread's event manager when using the threaded RTS andNothing otherwise.

new ::IOEventManagerSource#

Create a new event manager.

getSystemTimerManager ::IOTimerManagerSource#

Registering interest in I/O events

dataEventSource#

An I/O event.

Instances
EqEventSource#

Since: 4.4.0.0

Instance details

Defined inGHC.Event.Internal

ShowEventSource#

Since: 4.4.0.0

Instance details

Defined inGHC.Event.Internal

SemigroupEventSource#

Since: 4.10.0.0

Instance details

Defined inGHC.Event.Internal

MonoidEventSource#

Since: 4.4.0.0

Instance details

Defined inGHC.Event.Internal

evtRead ::EventSource#

Data is available to be read.

evtWrite ::EventSource#

The file descriptor is ready to accept a write.

typeIOCallback =FdKey ->Event ->IO ()Source#

Callback invoked on I/O events.

dataFdKeySource#

A file descriptor registration cookie.

Instances
EqFdKeySource#

Since: 4.4.0.0

Instance details

Defined inGHC.Event.Manager

ShowFdKeySource#

Since: 4.4.0.0

Instance details

Defined inGHC.Event.Manager

dataLifetimeSource#

The lifetime of an event registration.

Since: 4.8.1.0

Constructors

OneShot

the registration will be active for only one event

MultiShot

the registration will trigger multiple times

Instances
EqLifetimeSource#

Since: 4.8.1.0

Instance details

Defined inGHC.Event.Internal

ShowLifetimeSource#

Since: 4.8.1.0

Instance details

Defined inGHC.Event.Internal

SemigroupLifetimeSource#

Since: 4.10.0.0

Instance details

Defined inGHC.Event.Internal

MonoidLifetimeSource#

mappend takes the longer of two lifetimes.

Since: 4.8.0.0

Instance details

Defined inGHC.Event.Internal

registerFd ::EventManager ->IOCallback ->Fd ->Event ->Lifetime ->IOFdKeySource#

registerFd mgr cb fd evs lt registers interest in the eventsevs on the file descriptorfd for lifetimelt.cb is called for each event that occurs. Returns a cookie that can be handed tounregisterFd.

unregisterFd ::EventManager ->FdKey ->IO ()Source#

Drop a previous file descriptor registration.

unregisterFd_ ::EventManager ->FdKey ->IOBoolSource#

Drop a previous file descriptor registration, without waking the event manager thread. The return value indicates whether the event manager ought to be woken.

closeFd ::EventManager -> (Fd ->IO ()) ->Fd ->IO ()Source#

Close a file descriptor in a race-safe way.

Registering interest in timeout events

typeTimeoutCallback =IO ()Source#

Callback invoked on timeout events.

dataTimeoutKeySource#

A timeout registration cookie.

Instances
EqTimeoutKeySource#

Since: 4.7.0.0

Instance details

Defined inGHC.Event.TimerManager

registerTimeout ::TimerManager ->Int ->TimeoutCallback ->IOTimeoutKeySource#

Register a timeout in the given number of microseconds. The returnedTimeoutKey can be used to later unregister or update the timeout. The timeout is automatically unregistered after the given time has passed.

updateTimeout ::TimerManager ->TimeoutKey ->Int ->IO ()Source#

Update an active timeout to fire in the given number of microseconds.

unregisterTimeout ::TimerManager ->TimeoutKey ->IO ()Source#

Unregister an active timeout.

Produced byHaddock version 2.20.0


[8]ページ先頭

©2009-2025 Movatter.jp