Add macros to use for thread-safe linked lists.

Add LLIST_TS_* macros in a fashion similar to the already existing
LLIST_* macros. Unlike the non-thread-safe version, these include
LLIST_TS_LOCK and LLIST_TS_UNLOCK which can be used to lock (and unlock)
a list (hence the thread-safety).

Signed-off-by: Lukas Fleischer <calcurse@cryptocrack.de>
This commit is contained in:
Lukas Fleischer
2011-04-12 19:27:59 +02:00
parent 612204a60a
commit d668963e20
2 changed files with 88 additions and 0 deletions

View File

@@ -56,6 +56,7 @@
#include "llist.h"
#include "htable.h"
#include "llist_ts.h"
/* Internationalization. */
#if ENABLE_NLS