码迷,mamicode.com
首页 > 其他好文 > 详细

TSynDictionary

时间:2020-12-07 12:26:55      阅读:5      评论:0      收藏:0      [点我收藏+]

标签:进制   进程   protected   cti   val   roc   RoCE   线程安全的字典   iat   

TSynDictionary

mormot.core.json.pas

/// thread-safe dictionary to store some values from associated keys
// - will maintain a dynamic array of values, associated with a hash table
// for the keys, so that setting or retrieving values would be O(1)
// - all process is protected by a TSynLocker, so will be thread-safe
// - TDynArray is a wrapper which do not store anything, whereas this class
// is able to store both keys and values, and provide convenient methods to
// access the stored data, including JSON serialization and binary storage
TSynDictionary = class(TSynLocked)

///线程安全的字典,用于存储关联键的一些值

// -将维护一个与散列表关联的动态值数组

//用于键,因此设置或检索值将是O(1)

// -所有进程都由TSynLocker保护,因此是线程安全的

// - TDynArray是一个包装器,它不存储任何东西,而这个类

//能够存储键和值,并提供方便的方法

//访问存储的数据,包括JSON序列化和二进制存储

TSynDictionary

标签:进制   进程   protected   cti   val   roc   RoCE   线程安全的字典   iat   

原文地址:https://www.cnblogs.com/hnxxcxg/p/14072844.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!