added option to not use pool allocators (useful when using memory debugging tools)

This commit is contained in:
Arvid Norberg
2008-04-09 05:19:11 +00:00
parent 5a6e21f484
commit 75ef4ec1f1
6 changed files with 52 additions and 3 deletions

View File

@@ -264,6 +264,12 @@ Build features:
| | shipped public domain SHA-1 implementation is |
| | used. |
+------------------------+----------------------------------------------------+
| ``pool-allocators`` | * ``on`` - default, uses pool allocators for send |
| | buffers. |
| | * ``off`` - uses ``malloc()`` and ``free()`` |
| | instead. Might be useful to debug buffer issues |
| | with tools like electric fence or libgmalloc. |
+------------------------+----------------------------------------------------+
| ``link`` | * ``static`` - builds libtorrent as a static |
| | library (.a / .lib) |
| | * ``shared`` - builds libtorrent as a shared |
@@ -540,6 +546,8 @@ defines you can use to control the build.
| | will be built and the correct code will be |
| | chosen at run-time. |
+---------------------------------------+-------------------------------------------------+
| ``TORRENT_DISABLE_POOL_ALLOCATOR`` | Disables use of ``boost::pool<>``. |
+---------------------------------------+-------------------------------------------------+
| ``TORRENT_LINKING_SHARED`` | If this is defined when including the |
| | libtorrent headers, the classes and functions |
| | will be tagged with ``__declspec(dllimport)`` |