ITADN

Documentation: thread safety clarification

#503Closedgithuser8372 创建于 2025-09-05
feedback
G
githuser8372commented
On https://libzip.org/documentation/libzip.html under "thread safety", it's currently written: > different zip archives opened by libzip are independent of each other and can be used by parallel-running threads without locking. Can you please clarify what you mean by "zip archives" here? Do you mean an archive on disk, or do you mean `zip_t` objects? In particular, is it allowed to open the same `foo.zip` on disk concurrently without locking, if I make sure to open a separate `zip_t` to `foo.zip` on each thread (one separate `zip_t` opened on each thread)?
关闭于 2025-09-23 3 条评论