prg_list_cell_next_get()

Abstract

Quickly obtains a pointer to the next cell in a linked list.

Syntax

prg_list_cell_next_get (cell_ptr)
Argument Type Description
cell_ptr PrgT_List_Cell * The current cell.

Return Type

PrgT_List_Cell *

The next cell in the list.

prg_list_funcs.h

Details

This function is implemented as an inline definition for faster operation. No error checking is done to verify the validity of the cell pointer.

WARNING: This function is MT unsafe, as described in “Multi-Threading Safety“ on page 11. Access to shared lists must be externally serialized.

Purpose:

This function provides a way to quickly obtain a pointer to the next element of a list. It can be used when doing fast iterations over linked lists.

Errors:

  • Program Abort: Segmentation violation. (due to an illegal cell pointer or malformed list)

Reference:

本站文档由 北京智网畅联科技有限公司 整理、翻译并提供 · Documentation compiled and provided by Beijing ZNetLink Technology Co., Ltd.

交流群 · QQ Group:OPNET/智网妙算网络仿真交流群(群号 486383494)

原文档 © 2017 Riverbed Technology · 本站为公益翻译,由 AI 辅助完成,请仔细甄别

Original documentation © 2017 Riverbed Technology. Community translation, AI-assisted. Contact: jiazequn@znetlink.com