util/qht: Document memory ordering assumptions
commit34506b30e4210b417aa38d1518aa2c53fb7cf39b
authorPaolo Bonzini <pbonzini@redhat.com>
Fri, 15 Jul 2016 17:58:41 +0000 (15 20:58 +0300)
committerPaolo Bonzini <pbonzini@redhat.com>
Tue, 2 Aug 2016 10:03:58 +0000 (2 12:03 +0200)
treeeb3653db2474e880a5735baebe8c83a6d395f572
parentcc0100f464c94bf80ad36cd432f4a1ed58126b60
util/qht: Document memory ordering assumptions

It is naturally expected that some memory ordering should be provided
around qht_insert() and qht_lookup(). Document these assumptions in the
header file and put some comments in the source to denote how that
memory ordering requirements are fulfilled.

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
[Sergey Fedorov: commit title and message provided;
comment on qht_remove() elided]
Signed-off-by: Sergey Fedorov <serge.fdrv@gmail.com>
Message-Id: <20160715175852.30749-2-sergey.fedorov@linaro.org>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
include/qemu/qht.h
util/qht.c