This class is used to forward messages from the enqueueEvent function to the instance of the MamaQueueCallback class that the client originally supplied. Note that multiple events may be enqueued before any of them are processed. To avoid the managed objects being collected references are stored in a Dictionary object. These are then removed whenever the relevant callback fires.
Name | |
---|---|
delegate void | EnqueueCallback(IntPtr queue, IntPtr closure) This delegate is passed to the underlying C layer to act as the callback to mamaQueue_enqueueEvent. |
EnqueueEventForwarder(MamaQueueEventCallback callback, object closure, MamaQueue sender) Constructor initialises all member variables. |
|
int | ForwardEvent(MamaQueueEventCallback callback, object closure, IntPtr nativeHandle, MamaQueue sender) |
Name | |
---|---|
EnqueueCallback | NativeCallback Read only property returns the native callback delegate. |
delegate void EnqueueCallback(
IntPtr queue,
IntPtr closure
)
This delegate is passed to the underlying C layer to act as the callback to mamaQueue_enqueueEvent.
Parameters:
EnqueueEventForwarder(
MamaQueueEventCallback callback,
object closure,
MamaQueue sender
)
Constructor initialises all member variables.
Parameters:
static int ForwardEvent(
MamaQueueEventCallback callback,
object closure,
IntPtr nativeHandle,
MamaQueue sender
)
EnqueueCallback NativeCallback;
Read only property returns the native callback delegate.
Updated on 2023-03-31 at 15:29:32 +0100