LibCds: Michael Hashmap and Split Order List(LibCds:Michael Hashmap 和拆分顺序列表)
问题描述
I am using libcds and they have an implementation of Michael Hash Map and Split order list.
Based on the information I gathered from the doc here is how I implemented them:
includes:
Code:
Code:
And:
I initiate the structures by calling:
However I get segmentation faults, when CDSSplit is initiated, or when Michael has its first insert performed.
The Library installed fine with no warnings, and I use other hashtables I don't get any errors.
Thanks for any help
(Also posted, with less detail on the discussion page for the library, but there doesn't appear to be much presence there, will post back if anything is posted there)
Compile Flags: -std=c++0x -O3 -msse2 -m32 -DNDEBUG -DINTEL -g -D_REENTRANT -lrt -pthread -fno-strict-aliasing -l cds -l tbb -lllalloc
GDB Output:
According to the docs, it looks like you are missing the initialization of CDS and the threading manager:
这篇关于LibCds:Michael Hashmap 和拆分顺序列表的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!