oms_buffer_pool_flush()

Abstract

Iterates through the elements in the pool’s buffers and removes every element for which the flush procedure returns true.

Syntax

oms_buffer_pool_flush (buffer_pool_handle, flush_proc, user_data_ptr)

Argument Type Description
buffer_pool_handle OmsT_Buffer_Pool_Handle buffer pool object to flush
flush_proc OmsT_Buffer_Element_Flush_Proc function used to determine which elements to flush from the pool
user_data_ptr void * user data passed to flush_proc

Return Type

None.

Details

This function iterates through the elements in each buffer in the pool (and its subpool). For each element, the specified flush_proc is invoked with the element, the element insertion time in the buffer, and user_data_ptr. If flush_proc returns OPC_TRUE, the element is removed from the buffer and destroyed using the procedure specified in the root pool creation. See oms_buffer_pool_create().

The flush procedure has the following prototype:

Boolean				OmsT_Buffer_Element_Flush_Proc
	void			*element,
	double			insertion_time,
	void			*user_data_ptr);

本站文档由 北京智网畅联科技有限公司 整理、翻译并提供 · 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