Logo Search packages:      
Sourcecode: sofia-sip version File versions  Download package

SOFIAPUBFUN int su_wait_destroy ( su_wait_t waitobj )

Destroy a wait object.

The function su_wait_destroy() destroys a su_wait_t object.

Parameters:
waitobjpointer to wait object
Return values:
0when successful,
-1upon an error.

Definition at line 185 of file su_wait.c.

References su_wait_destroy().

Referenced by su_source_deregister(), su_wait_destroy(), and tport_register_secondary().

{
#if SU_HAVE_WINSOCK
  su_wait_t w0 = NULL;
  assert(waitobj != NULL);
  if (*waitobj) {
    WSACloseEvent(*waitobj);
    *waitobj = w0;
  }
#else
  su_wait_t w0 = { INVALID_SOCKET, 0, 0 };
  assert(waitobj != NULL);
  if (waitobj) {
    *waitobj = w0;
  }
#endif
  return waitobj ? 0 : -1;
}

Here is the call graph for this function:

Here is the caller graph for this function:


Generated by  Doxygen 1.6.0   Back to index