示例#1
0
static void local_close(FAR struct socket *psock)
{
  FAR struct local_conn_s *conn = psock->s_conn;

  /* Is this the last reference to the connection structure (there could
   * be more if the socket was dup'ed).
   */

  if (conn->lc_crefs <= 1)
    {
      conn->lc_crefs = 0;
      local_release(conn);
    }
  else
    {
      /* No.. Just decrement the reference count */

      conn->lc_crefs--;
    }
}
示例#2
0
void gles_uninit(const char *arg) {
    local_release(arg);
}