diff options
author | Ben Pfaff <blp@nicira.com> | 2013-08-06 14:40:25 -0700 |
---|---|---|
committer | Ben Pfaff <blp@nicira.com> | 2013-08-08 13:18:10 -0700 |
commit | 2ba4f163d9ea84aa8b8e9d8678371a70af766b5e (patch) | |
tree | 5a68d5749381779a32216618b2c8974b603c13f4 /lib/vlog.c | |
parent | 9c4c45edc36b88bcb2956140965dbde9224ff967 (diff) | |
download | openvswitch-2ba4f163d9ea84aa8b8e9d8678371a70af766b5e.tar.gz |
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>
Diffstat (limited to 'lib/vlog.c')
-rw-r--r-- | lib/vlog.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/vlog.c b/lib/vlog.c index 26d0e6cd1..ac229b4ee 100644 --- a/lib/vlog.c +++ b/lib/vlog.c @@ -100,7 +100,7 @@ static struct facility facilities[VLF_N_FACILITIES] = { }; /* Sequence number for the message currently being composed. */ -DEFINE_PER_THREAD_DATA(unsigned int, msg_num, 0); +DEFINE_STATIC_PER_THREAD_DATA(unsigned int, msg_num, 0); /* VLF_FILE configuration. * |