rt-thread icon indicating copy to clipboard operation
rt-thread copied to clipboard

关于提供内置hashmap结构的建议

Open musicwei opened this issue 2 years ago • 2 comments

既然现在已经存在链表结构,是否有计划内置线程安全的hashmap结构?

musicwei avatar Nov 22 '23 07:11 musicwei

这东西 rtt 本身用不上,内置的意义感觉不大。如果需要,可以考虑用 c++ stl 的, 线程安全加锁就可以了。

a1012112796 avatar Nov 23 '23 06:11 a1012112796

等内核的futex支持后,会加上的。

xqyjlj avatar Nov 27 '23 06:11 xqyjlj

https://github.com/RT-Thread/rt-thread/blob/master/components/utilities/libadt/hashmap/hashmap.h

BernardXiong avatar Apr 20 '24 16:04 BernardXiong