ovs-thread: Add support for globally visible per-thread data.
authorBen Pfaff <blp@nicira.com>
Tue, 6 Aug 2013 21:40:25 +0000 (14:40 -0700)
committerBen Pfaff <blp@nicira.com>
Thu, 8 Aug 2013 20:18:10 +0000 (13:18 -0700)
commit2ba4f163d9ea84aa8b8e9d8678371a70af766b5e
tree5a68d5749381779a32216618b2c8974b603c13f4
parent9c4c45edc36b88bcb2956140965dbde9224ff967
ovs-thread: Add support for globally visible per-thread data.

DEFINE_PER_THREAD_DATA always declared its data item as "static", meaning
that it was only directly visible within a single translation unit.
This commit adds additional forms of per-thread data that allow the data
to be accessible from multiple translation units.

Signed-off-by: Ben Pfaff <blp@nicira.com>
lib/ovs-thread.h
lib/random.c
lib/timeval.c
lib/util.c
lib/vlog.c