Commit 99913d4b authored by Davis King's avatar Davis King

updated the docs

--HG--
extra : convert_revision : svn%3Afdd8eb12-d10e-0410-9acb-85c331704f74/trunk%402675
parent 0270e5ff
...@@ -611,6 +611,10 @@ ...@@ -611,6 +611,10 @@
<name>thread_pool</name> <name>thread_pool</name>
<link>dlib/threads/thread_pool_extension_abstract.h.html#thread_pool</link> <link>dlib/threads/thread_pool_extension_abstract.h.html#thread_pool</link>
</item> </item>
<item>
<name>future</name>
<link>dlib/threads/thread_pool_extension_abstract.h.html#future</link>
</item>
<item> <item>
<name>thread_function</name> <name>thread_function</name>
<link>dlib/threads/thread_function_extension_abstract.h.html#thread_function</link> <link>dlib/threads/thread_function_extension_abstract.h.html#thread_function</link>
...@@ -1049,16 +1053,20 @@ ...@@ -1049,16 +1053,20 @@
<extension> <extension>
<name>thread_pool</name> <name>thread_pool</name>
<spec_file>dlib/threads/thread_pool_extension_abstract.h</spec_file> <spec_file link="true">dlib/threads/thread_pool_extension_abstract.h</spec_file>
<description> <description>
<p> <p>
This object represents a fixed size group of threads which you can This object represents a fixed size group of threads which you can
submit tasks to and then wait for those tasks to be completed. submit tasks to and then wait for those tasks to be completed. It also
provides a <a href="dlib/threads/thread_pool_extension_abstract.h.html#future">future</a> object
that provides a container which allows you to safely pass objects into the tasks.
</p> </p>
The implementation of this extension can be found The implementation of this extension can be found
<a href="dlib/threads/thread_pool_extension.h.html">here</a>. It is <a href="dlib/threads/thread_pool_extension.h.html">here</a>. It is
implemented such that no memory allocations occur after the thread pool implemented such that no memory allocations occur after the thread pool
has been constructed. has been constructed (the future object also doesn't perform any memory allocations or contain any system
resources such as mutex objects).
</description> </description>
<examples> <examples>
......
...@@ -76,7 +76,7 @@ ...@@ -76,7 +76,7 @@
<li><a href="api.html#thread_specific_data">Thread specific data</a></li> <li><a href="api.html#thread_specific_data">Thread specific data</a></li>
<li><a href="api.html#threaded_object">Threaded objects</a></li> <li><a href="api.html#threaded_object">Threaded objects</a></li>
<li><a href="api.html#thread_function">Threaded functions</a></li> <li><a href="api.html#thread_function">Threaded functions</a></li>
<li>A simple but powerful <a href="api.html#thread_pool">thread_pool</a></li> <li>A <a href="api.html#thread_pool">thread_pool</a> with support for futures</li>
</ul> </ul>
</li> </li>
......
...@@ -25,6 +25,7 @@ ...@@ -25,6 +25,7 @@
<term link="api.html#thread_specific_data" name="thread_specific_data"/> <term link="api.html#thread_specific_data" name="thread_specific_data"/>
<term link="api.html#threaded_object" name="threaded_object"/> <term link="api.html#threaded_object" name="threaded_object"/>
<term link="api.html#thread_pool" name="thread_pool"/> <term link="api.html#thread_pool" name="thread_pool"/>
<term link="api.html#thread_pool" name="futures"/>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment