ovs-thread: Add new support for thread-specific data.
authorBen Pfaff <blp@nicira.com>
Tue, 14 Jan 2014 22:35:48 +0000 (14:35 -0800)
committerBen Pfaff <blp@nicira.com>
Tue, 14 Jan 2014 22:51:02 +0000 (14:51 -0800)
commit9f9f52aec9c41975b3234e1b35fb80bf7b9ef90c
treed34715beb333d74692da049b23b54896b655acb1
parentc9bf1498fc3cf8b29cae95e7036e7df317cdfa7e
ovs-thread: Add new support for thread-specific data.

A couple of times I've wanted to create a dynamic data structure that has
thread-specific data, but I've not been able to do that because
PTHREAD_KEYS_MAX is so low (POSIX says at least 128, glibc is only a little
bigger at 1024).  This commit introduces a new form of thread-specific data
that supports a large number of items.

Signed-off-by: Ben Pfaff <blp@nicira.com>
Acked-by: Ethan Jackson <ethan@nicira.com>
lib/ovs-thread.c
lib/ovs-thread.h