Skip to main content

Name

clear_event_by_fd — Clear the event related to the file descriptor

Synopsis

#include "scheduler.h"

| Event * **clear_event_by_fd** ( | fd); |   |

int <var class="pdparam">fd</var>;

Description

Clear the event related to the file descriptor. This function returns the event because it's a convenience function to both get an event and clear it.

Parameters

fd

The file descriptor related to the Event that you wish to close.

Return Values

On success this function returns the Event indicated by the file descriptor.

Threading

Warning

Only call this function from the Scheduler thread.

See Also

Was this page helpful?