diff options
author | Ben Pfaff <blp@nicira.com> | 2013-06-19 11:21:47 -0700 |
---|---|---|
committer | Ben Pfaff <blp@nicira.com> | 2013-06-28 16:09:36 -0700 |
commit | 1514b275558304c63bc3838c2da5c4be0c1cbef0 (patch) | |
tree | a460f9a18cf7ee9a4c70a99cf51676733d0c0720 /lib/command-line.c | |
parent | 31a3fc6e3e9ce68d8bfebf65150d9455b9334dda (diff) | |
download | openvswitch-1514b275558304c63bc3838c2da5c4be0c1cbef0.tar.gz |
ovs-thread: Add support for convenient once-only initializers.
pthread_once() is portable but it does not allow passing any parameters to
the initialization function, which is often inconvenient, because it means
that the function can only access data declared at file scope. This commit
introduces an alternative with a more convenient interface.
Signed-off-by: Ben Pfaff <blp@nicira.com>
Acked-by: Ethan Jackson <ethan@nicira.com>
Diffstat (limited to 'lib/command-line.c')
0 files changed, 0 insertions, 0 deletions