📄 thread_safety.html.en
字号:
</div><div class="top"><a href="#page-header"><img alt="top" src="../images/up.gif" /></a></div><div class="section"><h2><a name="liblist" id="liblist">Library List</a></h2> <p>Please drop a note to <a href="http://httpd.apache.org/lists.html#http-dev">dev@httpd.apache.org</a> if you have additions or corrections to this list.</p> <table class="bordered"><tr class="header"><th>Library</th><th>Version</th><th>Thread Safe?</th><th>Notes</th></tr><tr><td><a href="http://aspell.sourceforge.net/">ASpell/PSpell</a></td> <td> </td> <td>?</td> <td> </td></tr><tr class="odd"><td><a href="http://www.sleepycat.com/">Berkeley DB</a></td> <td>3.x, 4.x</td> <td>Yes</td> <td>Be careful about sharing a connection across threads.</td></tr><tr><td><a href="http://sources.redhat.com/bzip2/index.html">bzip2</a></td> <td> </td> <td>Yes</td> <td>Both low-level and high-level APIs are thread-safe. However, high-level API requires thread-safe access to errno.</td></tr><tr class="odd"><td><a href="http://cr.yp.to/cdb.html">cdb</a></td> <td> </td> <td>?</td> <td> </td></tr><tr><td><a href="http://www.washington.edu/imap/">C-Client</a></td> <td> </td> <td>Perhaps</td> <td>c-client uses <code>strtok()</code> and <code>gethostbyname()</code> which are not thread-safe on most C library implementations. c-client's static data is meant to be shared across threads. If <code>strtok()</code> and <code>gethostbyname()</code> are thread-safe on your OS, c-client <em>may</em> be thread-safe.</td></tr><tr class="odd"><td><a href="http://www.fastio.com/">cpdflib</a></td> <td> </td> <td>?</td> <td> </td></tr><tr><td><a href="http://www.ijg.org/files/">libcrypt</a></td> <td> </td> <td>?</td> <td> </td></tr><tr class="odd"><td><a href="http://expat.sourceforge.net/">Expat</a></td> <td> </td> <td>Yes</td> <td>Need a separate parser instance per thread</td></tr><tr><td><a href="http://www.freetds.org/">FreeTDS</a></td> <td> </td> <td>?</td> <td> </td></tr><tr class="odd"><td><a href="http://www.freetype.org/">FreeType</a></td> <td> </td> <td>?</td> <td> </td></tr><tr><td><a href="http://www.boutell.com/gd/">GD 1.8.x</a></td> <td> </td> <td>?</td> <td> </td></tr><tr class="odd"><td><a href="http://www.boutell.com/gd/">GD 2.0.x</a></td> <td> </td> <td>?</td> <td> </td></tr><tr><td><a href="http://www.gnu.org/software/gdbm/gdbm.html">gdbm</a></td> <td> </td> <td>No</td> <td>Errors returned via a static <code>gdbm_error</code> variable</td></tr><tr class="odd"><td><a href="http://www.imagemagick.org/">ImageMagick</a></td> <td>5.2.2</td> <td>Yes</td> <td>ImageMagick docs claim it is thread safe since version 5.2.2 (see <a href="http://www.cise.ufl.edu/depot/www/ImageMagick/www/Changelog.html">Change log</a>). </td></tr><tr><td><a href="http://www.enlightenment.org/pages/imlib2.html">Imlib2</a></td> <td> </td> <td>?</td> <td> </td></tr><tr class="odd"><td><a href="http://www.ijg.org/files/">libjpeg</a></td> <td>v6b</td> <td>?</td> <td> </td></tr><tr><td><a href="http://mysql.com">libmysqlclient</a></td> <td> </td> <td>Yes</td> <td>Use mysqlclient_r library variant to ensure thread-safety. For more information, please read <a href="http://www.mysql.com/doc/en/Threaded_clients.html">http://www.mysql.com/doc/en/Threaded_clients.html</a>.</td></tr><tr class="odd"><td><a href="http://www.opaque.net/ming/">Ming</a></td> <td>0.2a</td> <td>?</td> <td> </td></tr><tr><td><a href="http://net-snmp.sourceforge.net/">Net-SNMP</a></td> <td>5.0.x</td> <td>?</td> <td> </td></tr><tr class="odd"><td><a href="http://www.openldap.org/">OpenLDAP</a></td> <td>2.1.x</td> <td>Yes</td> <td>Use <code>ldap_r</code> library variant to ensure thread-safety.</td></tr><tr><td><a href="http://www.openssl.org/">OpenSSL</a></td> <td>0.9.6g</td> <td>Yes</td> <td>Requires proper usage of <code>CRYPTO_num_locks</code>, <code>CRYPTO_set_locking_callback</code>, <code>CRYPTO_set_id_callback</code></td></tr><tr class="odd"><td><a href="http://www.oracle.com/">liboci8 (Oracle 8+)</a></td> <td>8.x,9.x</td> <td>?</td> <td> </td></tr><tr><td><a href="http://pdflib.com/">pdflib</a></td> <td>5.0.x</td> <td>Yes</td> <td>PDFLib docs claim it is thread safe; changes.txt indicates it has been partially thread-safe since V1.91: <a href="http://www.pdflib.com/products/pdflib/index.html">http://www.pdflib.com/products/pdflib/index.html</a>.</td></tr><tr class="odd"><td><a href="http://www.libpng.org/pub/png/libpng.html">libpng</a></td> <td>1.0.x</td> <td>?</td> <td> </td></tr><tr><td><a href="http://www.libpng.org/pub/png/libpng.html">libpng</a></td> <td>1.2.x</td> <td>?</td> <td> </td></tr><tr class="odd"><td><a href="http://www.postgresql.org/idocs/index.php?libpq-threading.html">libpq (PostgreSQL)</a></td> <td>7.x</td> <td>Yes</td> <td>Don't share connections across threads and watch out for <code>crypt()</code> calls</td></tr><tr><td><a href="http://www.gingerall.com/charlie/ga/xml/p_sab.xml">Sablotron</a></td> <td>0.95</td> <td>?</td> <td /></tr><tr class="odd"><td><a href="http://www.gzip.org/zlib/">zlib</a></td> <td>1.1.4</td> <td>Yes</td> <td>Relies upon thread-safe zalloc and zfree functions Default is to use libc's calloc/free which are thread-safe.</td></tr></table></div></div><div class="bottomlang"><p><span>Available Languages: </span><a href="../en/developer/thread_safety.html" title="English"> en </a></p></div><div id="footer"><p class="apache">Copyright 1995-2005 The Apache Software Foundation or its licensors, as applicable.<br />Licensed under the <a href="http://www.apache.org/licenses/LICENSE-2.0">Apache License, Version 2.0</a>.</p><p class="menu"><a href="../mod/">Modules</a> | <a href="../mod/directives.html">Directives</a> | <a href="../faq/">FAQ</a> | <a href="../glossary.html">Glossary</a> | <a href="../sitemap.html">Sitemap</a></p></div></body></html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -