tmm_cache_destroy()

注意: 需要地形建模模块(Terrain Modeling Module)功能。

摘要

销毁现有缓存的内容以及缓存本身。

语法

tmm_cache_destroy (cache)
参数 类型 说明
cache TmmT_Cache 要销毁的缓存

返回类型

void

无返回值。

头文件

tmm.h

示例

if (num_entires_added_to_cahce > 40000)
    {
    /* We don't want the memory used by TMM to grow beyond a fixed      */
    /* "high-water" mark.                                               */
    /* destroy the existing cache and start with a new empty cache      */
    tmm_cache_destroy (cache_ptr);

    /* create a new empty cache */
    cache_ptr = tmm_cache_create (TMMC_CACHE_SYMMETRIC,
        100    /* 100 meters tolerance */,
        5      /* 5 meters vertical tolerance */);
    }

详情

试图销毁一个不存在的缓存会产生错误消息。

用途

本函数销毁使用 tmm_cache_create() 创建的缓存。

错误

  • 缓存参数无效。确认你的缓存尚未被传递给 tmm_cache_destroy()。

参考

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