Skip to main content

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); |   |

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

Description

Close the specified file descriptor, and optionally dispatch the callback.

Parameters

fd

The file descriptor.

wants_shutdown

Set this option to 0 or 1 depending upon whether you need to execute a callback function.

Return Value

This function returns an int but this value does not seem to be used.

Threading

It is legal to call this function in any thread.

Was this page helpful?