-
Notifications
You must be signed in to change notification settings - Fork 0
Using Tervel
Neil Moore edited this page Mar 19, 2017
·
4 revisions
This page and its subpages will be dedicated to documenting best practices when using Tervel, the wait-free concurrent data structure framework that OpenMemDB uses internally.
- Every thread that accesses a Tervel data structure must create a Tervel thread context and register it with a Tervel object.
- The general Tervel object must be initialized with the total number of threads that would be registered with it. Going beyond that value will trigger an assertion.
-
Make sure that pop_back_only() and push_back_only() can not ever be called at the same time in different threads.
- Reason: (???)
- The key type must be the same as the hash of that type. (This may change, future work may change this).
- Not typically provided with Tervel