(5) "The application is responsible for thread-safety. No thread
synchronization is necessary when a queue is only used from a single
thread. Proper synchronization is required when sharing a queue
between multiple threads."
Does this apply across multiple struct blkio handles? ie. Is there
now, or could there be in future, some global state which would be
corrupted by parallel calls across multiple handles?
This matters because we could use NBDKIT_THREAD_MODEL_SERIALIZE_REQUESTS
instead of NBDKIT_THREAD_MODEL_SERIALIZE_ALL_REQUESTS
(
https://libguestfs.org/nbdkit-plugin.3.html#Threads).
Rich.
--
Richard Jones, Virtualization Group, Red Hat
http://people.redhat.com/~rjones
Read my programming and virtualization blog:
http://rwmj.wordpress.com
libguestfs lets you edit virtual machines. Supports shell scripting,
bindings from many languages.
http://libguestfs.org