I/O handler
Inherits from Wombat.MamaWrapper, IDisposable
Name | |
---|---|
MamaIo() M:Wombat.MamaWrapper.::ctor |
|
void | create(MamaQueue queue, MamaIoCallback action, uint descriptor, mamaIoType ioType, object closure) Create an IO handler. |
void | create(MamaQueue queue, MamaIoCallback action, uint descriptor, mamaIoType ioType) create(MamaQueue, MamaIoCallback, uint, mamaIoType, System.Object) |
void | create(MamaQueue queue, MamaIoCallback action, long descriptor, mamaIoType ioType, object closure) CLS compliant version of create create(MamaQueue, MamaIoCallback, uint, mamaIoType, System.Object) |
void | create(MamaQueue queue, MamaIoCallback action, long descriptor, mamaIoType ioType) CLS compliant version of create create(MamaQueue, MamaIoCallback, uint, mamaIoType, System.Object) |
void | destroy() Destroy the IO. A synonym to the MamaWrapper.Dispose method. |
Name | |
---|---|
virtual override MamaStatus.mamaStatus | DestroyNativePeer() Implements the destruction of the underlying peer object. MamaWrapper.DestroyNativePeer |
Name | |
---|---|
uint | descriptor Get the descriptor. |
long | descriptorClsCompliant CLS compliant version of descriptor |
object | closure Return the closure for the IO. |
Public Functions inherited from Wombat.MamaWrapper
Name | |
---|---|
void | Dispose() Destroys the underlying peer object and unbinds the wrapper from it. |
void | setNativeHandle(IntPtr nHandle) Sets the native handle of the native peer object. Should only be used by subclasses and in the same assembly. |
Protected Functions inherited from Wombat.MamaWrapper
Name | |
---|---|
MamaWrapper() Constructs a new wrapper object but doesn’t create it. If the object is not explicitly disposed it will remain registered for finalization and will attempt the destroy the native peer object when finalized. |
|
MamaWrapper(IntPtr nativeHandle) Constructs a managed wrapper from an existing native peer. The peer object will not be automatically finalized |
|
virtual void | Dispose(bool disposing, bool destroyNativeHandle =true) The actual implementation of Dispose - called by both the Dispose method and the finalizer. |
virtual void | OnDispose() |
Protected Attributes inherited from Wombat.MamaWrapper
Name | |
---|---|
IntPtr | nativeHandle the handle to the native peer object |
MamaIo()
M:Wombat.MamaWrapper.::ctor
void create(
MamaQueue queue,
MamaIoCallback action,
uint descriptor,
mamaIoType ioType,
object closure
)
Create an IO handler.
Parameters:
If the underlying infrastructure does not support the requested mamaIoType, create throws MamaException(MAMA_STATUS_UNSUPPORTED_IO_TYPE). For example, RV only supports READ, WRITE, and EXCEPT. LBM supports all types except ERROR
void create(
MamaQueue queue,
MamaIoCallback action,
uint descriptor,
mamaIoType ioType
)
create(MamaQueue, MamaIoCallback, uint, mamaIoType, System.Object)
void create(
MamaQueue queue,
MamaIoCallback action,
long descriptor,
mamaIoType ioType,
object closure
)
CLS compliant version of create create(MamaQueue, MamaIoCallback, uint, mamaIoType, System.Object)
void create(
MamaQueue queue,
MamaIoCallback action,
long descriptor,
mamaIoType ioType
)
CLS compliant version of create create(MamaQueue, MamaIoCallback, uint, mamaIoType, System.Object)
void destroy()
Destroy the IO. A synonym to the MamaWrapper.Dispose method.
virtual override MamaStatus.mamaStatus DestroyNativePeer()
Implements the destruction of the underlying peer object. MamaWrapper.DestroyNativePeer
Reimplements: Wombat::MamaWrapper::DestroyNativePeer
uint descriptor;
Get the descriptor.
long descriptorClsCompliant;
CLS compliant version of descriptor
object closure;
Return the closure for the IO.
Updated on 2023-03-31 at 15:29:32 +0100