tests: split in check, regtest and bench targets Allow make check to run without requiring build machines to use hours of CPU time. make check: short unit tests make regtest: long regression tests make bench: long benchmarks Fixes #611 Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Cleanup: cast pthread_self() return value to unsigned long pthread_t can map to other things that unsigned long (e.g. pointer). Cast it to unsigned long for debug printing and for debug delay random value purposes. Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
rculfhash: use node instead of iter argument for deletion Using a node instead of an iterator as argument for deletion allows passing a node pointer (that would have been looked up from another data structure, thus not using the iterator) as argument for deletion. Deletion still returns -ENOENT if asked to delete the NULL node. This simplifies the caller usage. Suggested-by: Lai Jiangshan <laijs@cn.fujitsu.com> Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
rculfhash: number of logically removed nodes should not appear in API This is an implementation artefact that should not appear in the API. So only count the non-removed nodes. Print a debug message showing the number of logically removed nodes instead within the count nodes function. Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>