Typedef asTrapWriteListener

Typedef Documentation

typedef void (*asTrapWriteListener)(asTrapWriteMessage *pmessage, int after)

Pointer to a listener function.

Each registered listener function is called twice for every put; once before and once after the write is performed. The listener may set userPvt in the first call and retrieve it in the second call.

Each asTrapWriteMessage can change or may be deleted after the user’s asTrapWriteListener returns

The listener function is called by a server thread so it must not block or do anything that causes a delay.