Name
sp_sync_close — Close the specified file descriptor, and optionally dispatch the callback
Synopsis
#include "sp_async.h"
| int **sp_sync_close** (
| fd, | |
| | wants_shutdown)
; | |
Description
Close the specified file descriptor, and optionally dispatch the callback.
- fd
-
The file descriptor.
- wants_shutdown
-
Set this option to
0
or1
depending upon whether you need to execute a callback function.
This function returns an int but this value does not seem to be used.
It is legal to call this function in any thread.
Was this page helpful?