doc: Add doc how to enable multi threading in libnghttp2_asio

This commit is contained in:
Tatsuhiro Tsujikawa 2014-09-24 00:40:56 +09:00
parent 485d04851c
commit c27ec6f57b
1 changed files with 14 additions and 0 deletions

View File

@ -157,3 +157,17 @@ When client requested "/", we push "/my.css". To push resource, call
``nghttp2::asio_http2::server::request::push`` function with desired
method and path. Later, the callback will be called with the pushed
resource "/my.css".
Enable multi-threading
++++++++++++++++++++++
Enabling multi-threading is very easy. Just call
``nghttp2::asio_http2::server::http2::num_threads`` function with the
desired number of threads:
.. code-block:: cpp
http2 server;
// Use 4 native threads
server.num_threads(4);