sigslot
1.0.1Signals & Slots library
System Information
Definition Index
-
SIGSLOT
No documentation provided.-
EXTERNAL SPECIAL-VARIABLE *QUEUE-SIZE*
The capacity of the task queue.
This is by default set to 20. When the queue is full, the thread calling EMIT will block until there's room for one more.
-
EXTERNAL SPECIAL-VARIABLE *UNHANDLED-CONDITION-HANDLER*
The condition handler to call when an a condition is signaled and not handled in a queued slot.
The default handler will issue a WARN with the condition.
-
EXTERNAL CLASS OBSERVABLE
An OBSERVABLE object can register multiple observers that get notified when the function NOTIFY is called.
All methods are thread safe and the UPDATE method is dispatched on the same thread where the NOTIFY method is called.
-
EXTERNAL FUNCTION MAKE-SIGNAL
Creates a SIGNAL ready to be connected to.
Ideally, you would call this function from the :INITFORM of a class slot.
-
EXTERNAL GENERIC-FUNCTION CONNECT
- SIGNAL
- SLOT
- OBJECT
- &KEY
- DISPATCH
Connects a SIGNAL to a SLOT function for a given OBJECT. DISPATCH can be one of :DIRECT (default), :QUEUED or :MAIN-THREAD.
Returns T if successfully connected to SIGNAL, otherwise NIL.
-
EXTERNAL GENERIC-FUNCTION DEREGISTER-OBSERVER
- OBSERVABLE
- OBJECT
Deregister an observer OBJECT from OBSERVABLE so it no longer receives notifications.
-
EXTERNAL GENERIC-FUNCTION DISCONNECT
- SIGNAL
- OBJECT
Disconnects a SIGNAL from a slot of the given OBJECT.
Returns T if successfully disconnected from SIGNAL, otherwise NIL.
-
EXTERNAL GENERIC-FUNCTION EMIT
- SIGNAL
- OBJECT
- &REST
- REST
Emits a SIGNAL from OBJECT to all connected slots. Additional arguments can be added to the method call and are used when calling the slot.
-
EXTERNAL GENERIC-FUNCTION NOTIFY
- OBSERVABLE
- &REST
- REST
Notify an OBSERVABLE object's observers by calling UPDATE across the entire observer collection. All extra arguments specified in REST are applied to UPDATE.
-
EXTERNAL GENERIC-FUNCTION OBSERVER-COUNT
- OBSERVABLE
Returns the number of valid observers for OBSERVABLE.
-
EXTERNAL GENERIC-FUNCTION REGISTER-OBSERVER
- OBSERVABLE
- OBJECT
Register an observer OBJECT to receive notifications.
-
EXTERNAL GENERIC-FUNCTION UPDATE
- OBSERVABLE
- OBSERVER
- &REST
- REST
Called by an OBSERVABLE object to notify an OBSERVER when an event occurred.
You MUST implement a specialization of this method for the intended OBSERVER in order to receive updates.
-