diff options
author | Ben Pfaff <blp@nicira.com> | 2014-01-08 17:13:28 -0800 |
---|---|---|
committer | Ben Pfaff <blp@nicira.com> | 2014-01-08 17:13:28 -0800 |
commit | 4597d2a57226eaec787d6501e88ab32f3b6209e1 (patch) | |
tree | 96a785625df35b656aadec214300147fe3b0a655 /lib/stp.c | |
parent | 5c8d2fcad02cd65c21522ce348f32d5350df320b (diff) | |
download | openvswitch-4597d2a57226eaec787d6501e88ab32f3b6209e1.tar.gz |
ovs-atomic: New functions atomic_flag_init(), atomic_flag_destroy().
Standard C11 doesn't need these functions because it is able to require
implementations not to need them. But we can't construct a portable
implementation that does not need them in every case, so this commit adds
them.
These functions are only needed for atomic_flag objects that are
dynamically allocated (because statically allocated objects can use
ATOMIC_FLAG_INIT). So far there aren't any of those, but an upcoming
commit will introduce one.
Signed-off-by: Ben Pfaff <blp@nicira.com>
Acked-by: Ethan Jackson <ethan@nicira.com>
Diffstat (limited to 'lib/stp.c')
0 files changed, 0 insertions, 0 deletions