lib/seq: Document acquire-release semantics.
authorJarno Rajahalme <jrajahalme@nicira.com>
Fri, 29 Aug 2014 23:15:44 +0000 (16:15 -0700)
committerJarno Rajahalme <jrajahalme@nicira.com>
Fri, 29 Aug 2014 23:15:44 +0000 (16:15 -0700)
commitab355e676375f6d7b6715f3fc4ac6b750b5df1bb
treec4f19df2c196ce256695d2ad9f3b52edc1a36b1f
parentdce96af8fd873ce1a2c451f511725fe1a28aebee
lib/seq: Document acquire-release semantics.

Seq objects would be really hard to use if they did not provide
acquire-release semantics.  Currently they do that via
ovs_mutex_lock()/ovs_mutex_unlock(), respectively.  Document the
behavior so that it is safer to rely on that elsewhere.

Signed-off-by: Jarno Rajahalme <jrajahalme@nicira.com>
Acked-by: Ben Pfaff <blp@nicira.com>
lib/ovs-thread.c
lib/seq.h