Example #1
0
void POSCALL nosMutexDestroy(NOSMUTEX_t mutex)
{
  if (mutex != NULL)
  {
    nos_regDelSysKey(REGTYPE_MUTEX, mutex, NULL);
    posMutexDestroy((POSMUTEX_t) mutex);
  }
}
Example #2
0
void netSockFree(UosFile* file)
{
  P_ASSERT("sockWrite", file->fs->cf == &netFSConf);
  NetSock* sock = (NetSock*)file->fsPriv;

  posMutexDestroy(sock->mutex);
  posFlagDestroy(sock->sockChange);
  posFlagDestroy(sock->uipChange);
  sock->mutex = NULL;
  sock->sockChange = NULL;
  sock->uipChange = NULL;

  sock->state = NET_SOCK_NULL;

  uosFileFree(file);
}