clear_event_by_fd
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.
- fd
-
The file descriptor related to the Event that you wish to close.
On success this function returns the Event indicated by the file descriptor.
Warning
Only call this function from the Scheduler
thread.