Hi Yue,
There is one in our examples:
pmdk/src/examples/libpmemobj/hashmap
Actually, there are two variants of hashmap implementation - one that uses pmemobj transactions and another based on atomic (nont-transactional) APIs. See README for details. See also:
pmdk/src/examples/libpmemobj/map
for a simple kv store example (server/client) based on this hash map implementation (and other data structures/trees/etc.).
It's just an example, but it pretty well illustrates how to implement your own hash table with libpmemobj.
K.
--
You received this message because you are subscribed to the Google Groups "pmem" group.
To unsubscribe from this group and stop receiving emails from it, send an email to
pmem+uns...@googlegroups.com.
To post to this group, send email to pm...@googlegroups.com.
To view this discussion on the web visit
https://groups.google.com/d/msgid/pmem/88cdcf93-2f2d-4dee-8b5c-c511aa026d89%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.