コード例 #1
0
void TRI_FreeGeneralCursor (TRI_general_cursor_t* cursor) {
  if (cursor->_extra != NULL) {
    TRI_FreeJson(TRI_UNKNOWN_MEM_ZONE, cursor->_extra);
  }

  TRI_FreeCursorResult(cursor->_result);

  TRI_DestroySpin(&cursor->_lock);
  TRI_Free(TRI_UNKNOWN_MEM_ZONE, cursor);

  LOG_TRACE("destroyed general cursor");
}
コード例 #2
0
ファイル: general-cursor.c プロジェクト: eranshir/ArangoDB
void TRI_FreeGeneralCursor (TRI_general_cursor_t* cursor) {
  if (cursor->_deleted) {
    return;
  }

  cursor->_deleted = true;

  TRI_FreeCursorResult(cursor->_result);

  TRI_DestroyMutex(&cursor->_lock);
  TRI_Free(TRI_UNKNOWN_MEM_ZONE, cursor);

  LOG_TRACE("destroyed general cursor");
}