regen
diff --git a/man/libzip.html b/man/libzip.html index 3c2e3b8..bda1461 100644 --- a/man/libzip.html +++ b/man/libzip.html
@@ -75,6 +75,18 @@ original zip archive atomically.</p> <p class="Pp">Below there are two sections listing functions: one for how to read from zip archives and one for how to create/modify them.</p> +<section class="Ss"> +<h2 class="Ss" id="THREAD_SAFETY"><a class="permalink" href="#THREAD_SAFETY">THREAD + SAFETY</a></h2> +In general, different zip archives opened by <code class="Nm">libzip</code> are + independent of each other and can be used by parallel-running threads without + locking. If you want to use an archive from multiple threads, you have to + synchronize access to it yourself. If you use an archive as a source for + <a class="Xr" href="zip_file_add.html">zip_file_add(3)</a> or + <a class="Xr" href="zip_file_replace.html">zip_file_replace(3)</a>, access to + the target archive must be synchronized with access to the source archive as + well. +</section> </section> <section class="Sh"> <h1 class="Sh" id="READING_ZIP_ARCHIVES"><a class="permalink" href="#READING_ZIP_ARCHIVES">READING @@ -245,7 +257,7 @@ </div> <table class="foot"> <tr> - <td class="foot-date">July 23, 2020</td> + <td class="foot-date">September 15, 2020</td> <td class="foot-os">NiH</td> </tr> </table>
diff --git a/man/libzip.man b/man/libzip.man index 5f8b19c..aa12a9d 100644 --- a/man/libzip.man +++ b/man/libzip.man
@@ -30,7 +30,7 @@ .\" OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN .\" IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. .\" -.TH "LIBZIP" "3" "July 23, 2020" "NiH" "Library Functions Manual" +.TH "LIBZIP" "3" "September 15, 2020" "NiH" "Library Functions Manual" .nh .if n .ad l .SH "NAME" @@ -66,6 +66,19 @@ .PP Below there are two sections listing functions: one for how to read from zip archives and one for how to create/modify them. +.SS "THREAD SAFETY" +In general, different zip archives opened by +\fBlibzip\fR +are independent of each other and can be used by parallel-running +threads without locking. +If you want to use an archive from multiple threads, you have to +synchronize access to it yourself. +If you use an archive as a source for +zip_file_add(3) +or +zip_file_replace(3), +access to the target archive must be synchronized with access to the +source archive as well. .SH "READING ZIP ARCHIVES" .SS "open archive" .TP 4n