rt-thread
rt-thread copied to clipboard
关于提供内置hashmap结构的建议
既然现在已经存在链表结构,是否有计划内置线程安全的hashmap结构?
这东西 rtt 本身用不上,内置的意义感觉不大。如果需要,可以考虑用 c++ stl 的, 线程安全加锁就可以了。
等内核的futex支持后,会加上的。
https://github.com/RT-Thread/rt-thread/blob/master/components/utilities/libadt/hashmap/hashmap.h