EventLoop_UnregisterIo Function
Header: #include <applibs/eventloop.h>
Unregisters an I/O event from an EventLoop object.
int EventLoop_UnregisterIo(EventLoop *el, EventRegistration *reg);
Parameters
el
TheEventLoop
to which the I/O event is registered.reg
The EventRegistration object returned by EventLoop_RegisterIo. If this value is NULL, no action occurs and the function returns success.
Return value
Returns 0 for success, or -1 for failure, in which case errno
is set to the error value.
Remarks
The EventRegistration object must be returned by the EventLoop_RegisterIo call for the same EventLoop
object. Trying to unregister an EventRegistration
object from a different EventLoop
or another object will lead to undefined behavior.
An active EventRegistration
object can be unregistered once. Trying to unregister it multiple times will lead to undefined behavior.
Tilbakemeldinger
https://aka.ms/ContentUserFeedback.
Kommer snart: Gjennom 2024 faser vi ut GitHub Issues som tilbakemeldingsmekanisme for innhold, og erstatter det med et nytt system for tilbakemeldinger. Hvis du vil ha mer informasjon, kan du se:Send inn og vis tilbakemelding for