> (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?
There will never be any need to synchronize accesses to separate blkio instances. We will clarify this in the docs. Alberto > 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). _______________________________________________ Libguestfs mailing list Libguestfs@redhat.com https://listman.redhat.com/mailman/listinfo/libguestfs