2020-09-01 16:00:33 +02:00
<!-- HTML header for doxygen 1.8.18 -->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
< html xmlns = "http://www.w3.org/1999/xhtml" >
< head >
< meta http-equiv = "Content-Type" content = "text/xhtml;charset=UTF-8" / >
< meta http-equiv = "X-UA-Compatible" content = "IE=9" / >
2022-01-17 21:42:14 +01:00
< meta name = "generator" content = "Doxygen 1.9.3" / >
2020-09-01 16:00:33 +02:00
< meta name = "viewport" content = "width=device-width, initial-scale=1" / >
< title > OR-Tools: ThreadPool< / title >
< link href = "tabs.css" rel = "stylesheet" type = "text/css" / >
< script type = "text/javascript" src = "jquery.js" > < / script >
< script type = "text/javascript" src = "dynsections.js" > < / script >
< link href = "navtree.css" rel = "stylesheet" type = "text/css" / >
< script type = "text/javascript" src = "resize.js" > < / script >
< script type = "text/javascript" src = "navtreedata.js" > < / script >
< script type = "text/javascript" src = "navtree.js" > < / script >
< link href = "search/search.css" rel = "stylesheet" type = "text/css" / >
< script type = "text/javascript" src = "search/searchdata.js" > < / script >
< script type = "text/javascript" src = "search/search.js" > < / script >
< link href = "doxygen.css" rel = "stylesheet" type = "text/css" / >
< link href = "styleSheet.tmp.css" rel = "stylesheet" type = "text/css" / >
< / head >
< body >
< div id = "top" > <!-- do not remove this div, it is closed by doxygen! -->
< div id = "titlearea" >
< table cellspacing = "0" cellpadding = "0" >
< tbody >
< tr style = "height: 56px;" >
< td id = "projectlogo" > < img alt = "Logo" src = "orLogo.png" / > < / td >
< td id = "projectalign" style = "padding-left: 0.5em;" >
< div id = "projectname" > OR-Tools
2022-03-04 00:11:33 +01:00
  < span id = "projectnumber" > 9.3< / span >
2020-09-01 16:00:33 +02:00
< / div >
< / td >
< / tr >
< / tbody >
< / table >
< / div >
<!-- end header part -->
2022-01-17 21:42:14 +01:00
<!-- Generated by Doxygen 1.9.3 -->
2020-09-01 16:00:33 +02:00
< script type = "text/javascript" >
2022-01-17 21:42:14 +01:00
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699& dn=expat.txt MIT */
var searchBox = new SearchBox("searchBox", "search",'Search','.html');
2020-09-01 16:00:33 +02:00
/* @license-end */
< / script >
< script type = "text/javascript" src = "menudata.js" > < / script >
< script type = "text/javascript" src = "menu.js" > < / script >
< script type = "text/javascript" >
2022-01-17 21:42:14 +01:00
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699& dn=expat.txt MIT */
2020-09-01 16:00:33 +02:00
$(function() {
initMenu('',true,false,'search.php','Search');
$(document).ready(function() { init_search(); });
});
2022-01-17 21:42:14 +01:00
/* @license-end */
< / script >
2020-09-01 16:00:33 +02:00
< div id = "main-nav" > < / div >
< / div > <!-- top -->
< div id = "side-nav" class = "ui-resizable side-nav-resizable" >
< div id = "nav-tree" >
< div id = "nav-tree-contents" >
< div id = "nav-sync" class = "sync" > < / div >
< / div >
< / div >
< div id = "splitbar" style = "-moz-user-select:none;"
class="ui-resizable-handle">
< / div >
< / div >
< script type = "text/javascript" >
2022-01-17 21:42:14 +01:00
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699& dn=expat.txt MIT */
$(document).ready(function(){initNavTree('classoperations__research_1_1_thread_pool.html',''); initResizable(); });
2020-09-01 16:00:33 +02:00
/* @license-end */
< / script >
< div id = "doc-content" >
<!-- window showing the filter options -->
< div id = "MSearchSelectWindow"
onmouseover="return searchBox.OnSearchSelectShow()"
onmouseout="return searchBox.OnSearchSelectHide()"
onkeydown="return searchBox.OnSearchSelectKey(event)">
< / div >
<!-- iframe showing the search results (closed by default) -->
< div id = "MSearchResultsWindow" >
< iframe src = "javascript:void(0)" frameborder = "0"
name="MSearchResults" id="MSearchResults">
< / iframe >
< / div >
< div class = "header" >
< div class = "summary" >
< a href = "#pub-methods" > Public Member Functions< / a > |
2020-10-09 12:00:09 +02:00
< a href = "classoperations__research_1_1_thread_pool-members.html" > List of all members< / a > < / div >
2022-01-17 21:42:14 +01:00
< div class = "headertitle" > < div class = "title" > ThreadPool< / div > < / div >
2020-09-01 16:00:33 +02:00
< / div > <!-- header -->
< div class = "contents" >
< a name = "details" id = "details" > < / a > < h2 class = "groupheader" > Detailed Description< / h2 >
< div class = "textblock" >
< p class = "definition" > Definition at line < a class = "el" href = "threadpool_8h_source.html#l00026" > 26< / a > of file < a class = "el" href = "threadpool_8h_source.html" > threadpool.h< / a > .< / p >
< / div > < table class = "memberdecls" >
2022-01-17 21:42:14 +01:00
< tr class = "heading" > < td colspan = "2" > < h2 class = "groupheader" > < a id = "pub-methods" name = "pub-methods" > < / a >
2020-09-01 16:00:33 +02:00
Public Member Functions< / h2 > < / td > < / tr >
2020-10-09 12:00:09 +02:00
< tr class = "memitem:a0c44e22f9dfc275e181be84bf4e66523" > < td class = "memItemLeft" align = "right" valign = "top" >   < / td > < td class = "memItemRight" valign = "bottom" > < a class = "el" href = "classoperations__research_1_1_thread_pool.html#a0c44e22f9dfc275e181be84bf4e66523" > ThreadPool< / a > (const std::string & prefix, int num_threads)< / td > < / tr >
2020-09-01 16:00:33 +02:00
< tr class = "separator:a0c44e22f9dfc275e181be84bf4e66523" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
2020-10-09 12:00:09 +02:00
< tr class = "memitem:ad41a30b11a0c9d8566ca1a53b4cf43f6" > < td class = "memItemLeft" align = "right" valign = "top" >   < / td > < td class = "memItemRight" valign = "bottom" > < a class = "el" href = "classoperations__research_1_1_thread_pool.html#ad41a30b11a0c9d8566ca1a53b4cf43f6" > ~ThreadPool< / a > ()< / td > < / tr >
2020-09-01 16:00:33 +02:00
< tr class = "separator:ad41a30b11a0c9d8566ca1a53b4cf43f6" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
2020-10-09 12:00:09 +02:00
< tr class = "memitem:a176534e56452aa8789f0d4200975dc70" > < td class = "memItemLeft" align = "right" valign = "top" > void  < / td > < td class = "memItemRight" valign = "bottom" > < a class = "el" href = "classoperations__research_1_1_thread_pool.html#a176534e56452aa8789f0d4200975dc70" > StartWorkers< / a > ()< / td > < / tr >
2020-09-01 16:00:33 +02:00
< tr class = "separator:a176534e56452aa8789f0d4200975dc70" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
2020-10-09 12:00:09 +02:00
< tr class = "memitem:aac78d8770b03a18532d00104cd2bce0e" > < td class = "memItemLeft" align = "right" valign = "top" > void  < / td > < td class = "memItemRight" valign = "bottom" > < a class = "el" href = "classoperations__research_1_1_thread_pool.html#aac78d8770b03a18532d00104cd2bce0e" > Schedule< / a > (std::function< void()> closure)< / td > < / tr >
2020-09-01 16:00:33 +02:00
< tr class = "separator:aac78d8770b03a18532d00104cd2bce0e" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
2020-10-09 12:00:09 +02:00
< tr class = "memitem:a574a58759834205c815d601debc67636" > < td class = "memItemLeft" align = "right" valign = "top" > std::function< void()>   < / td > < td class = "memItemRight" valign = "bottom" > < a class = "el" href = "classoperations__research_1_1_thread_pool.html#a574a58759834205c815d601debc67636" > GetNextTask< / a > ()< / td > < / tr >
2020-09-01 16:00:33 +02:00
< tr class = "separator:a574a58759834205c815d601debc67636" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
2021-04-27 23:00:03 +02:00
< tr class = "memitem:a427fdcf2864e6a3bccc87dcb2d9eaeff" > < td class = "memItemLeft" align = "right" valign = "top" > void  < / td > < td class = "memItemRight" valign = "bottom" > < a class = "el" href = "classoperations__research_1_1_thread_pool.html#a427fdcf2864e6a3bccc87dcb2d9eaeff" > SetQueueCapacity< / a > (int < a class = "el" href = "routing__flow_8cc.html#a2acb49f4df5288066c43610bede123ec" > capacity< / a > )< / td > < / tr >
2020-09-01 16:00:33 +02:00
< tr class = "separator:a427fdcf2864e6a3bccc87dcb2d9eaeff" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
< / table >
< h2 class = "groupheader" > Constructor & Destructor Documentation< / h2 >
2022-01-17 21:42:14 +01:00
< a id = "a0c44e22f9dfc275e181be84bf4e66523" name = "a0c44e22f9dfc275e181be84bf4e66523" > < / a >
2020-09-01 16:00:33 +02:00
< h2 class = "memtitle" > < span class = "permalink" > < a href = "#a0c44e22f9dfc275e181be84bf4e66523" > ◆ < / a > < / span > ThreadPool()< / h2 >
< div class = "memitem" >
< div class = "memproto" >
< table class = "memname" >
< tr >
2020-10-09 12:00:09 +02:00
< td class = "memname" > < a class = "el" href = "classoperations__research_1_1_thread_pool.html" > ThreadPool< / a > < / td >
2020-09-01 16:00:33 +02:00
< td > (< / td >
< td class = "paramtype" > const std::string &   < / td >
< td class = "paramname" > < em > prefix< / em > , < / td >
< / tr >
< tr >
< td class = "paramkey" > < / td >
< td > < / td >
< td class = "paramtype" > int  < / td >
< td class = "paramname" > < em > num_threads< / em >   < / td >
< / tr >
< tr >
< td > < / td >
< td > )< / td >
< td > < / td > < td > < / td >
< / tr >
< / table >
< / div > < div class = "memdoc" >
< p class = "definition" > Definition at line < a class = "el" href = "threadpool_8cc_source.html#l00028" > 28< / a > of file < a class = "el" href = "threadpool_8cc_source.html" > threadpool.cc< / a > .< / p >
< / div >
< / div >
2022-01-17 21:42:14 +01:00
< a id = "ad41a30b11a0c9d8566ca1a53b4cf43f6" name = "ad41a30b11a0c9d8566ca1a53b4cf43f6" > < / a >
2020-09-01 16:00:33 +02:00
< h2 class = "memtitle" > < span class = "permalink" > < a href = "#ad41a30b11a0c9d8566ca1a53b4cf43f6" > ◆ < / a > < / span > ~ThreadPool()< / h2 >
< div class = "memitem" >
< div class = "memproto" >
< table class = "memname" >
< tr >
2020-10-09 12:00:09 +02:00
< td class = "memname" > ~< a class = "el" href = "classoperations__research_1_1_thread_pool.html" > ThreadPool< / a > < / td >
2020-09-01 16:00:33 +02:00
< td > (< / td >
< td class = "paramname" > < / td > < td > )< / td >
< td > < / td >
< / tr >
< / table >
< / div > < div class = "memdoc" >
< p class = "definition" > Definition at line < a class = "el" href = "threadpool_8cc_source.html#l00031" > 31< / a > of file < a class = "el" href = "threadpool_8cc_source.html" > threadpool.cc< / a > .< / p >
< / div >
< / div >
< h2 class = "groupheader" > Member Function Documentation< / h2 >
2022-01-17 21:42:14 +01:00
< a id = "a574a58759834205c815d601debc67636" name = "a574a58759834205c815d601debc67636" > < / a >
2020-09-01 16:00:33 +02:00
< h2 class = "memtitle" > < span class = "permalink" > < a href = "#a574a58759834205c815d601debc67636" > ◆ < / a > < / span > GetNextTask()< / h2 >
< div class = "memitem" >
< div class = "memproto" >
< table class = "memname" >
< tr >
< td class = "memname" > std::function< void()> GetNextTask < / td >
< td > (< / td >
< td class = "paramname" > < / td > < td > )< / td >
< td > < / td >
< / tr >
< / table >
< / div > < div class = "memdoc" >
< p class = "definition" > Definition at line < a class = "el" href = "threadpool_8cc_source.html#l00056" > 56< / a > of file < a class = "el" href = "threadpool_8cc_source.html" > threadpool.cc< / a > .< / p >
< / div >
< / div >
2022-01-17 21:42:14 +01:00
< a id = "aac78d8770b03a18532d00104cd2bce0e" name = "aac78d8770b03a18532d00104cd2bce0e" > < / a >
2020-09-01 16:00:33 +02:00
< h2 class = "memtitle" > < span class = "permalink" > < a href = "#aac78d8770b03a18532d00104cd2bce0e" > ◆ < / a > < / span > Schedule()< / h2 >
< div class = "memitem" >
< div class = "memproto" >
< table class = "memname" >
< tr >
< td class = "memname" > void Schedule < / td >
< td > (< / td >
< td class = "paramtype" > std::function< void()>   < / td >
< td class = "paramname" > < em > closure< / em > < / td > < td > )< / td >
< td > < / td >
< / tr >
< / table >
< / div > < div class = "memdoc" >
< p class = "definition" > Definition at line < a class = "el" href = "threadpool_8cc_source.html#l00077" > 77< / a > of file < a class = "el" href = "threadpool_8cc_source.html" > threadpool.cc< / a > .< / p >
< / div >
< / div >
2022-01-17 21:42:14 +01:00
< a id = "a427fdcf2864e6a3bccc87dcb2d9eaeff" name = "a427fdcf2864e6a3bccc87dcb2d9eaeff" > < / a >
2020-09-01 16:00:33 +02:00
< h2 class = "memtitle" > < span class = "permalink" > < a href = "#a427fdcf2864e6a3bccc87dcb2d9eaeff" > ◆ < / a > < / span > SetQueueCapacity()< / h2 >
< div class = "memitem" >
< div class = "memproto" >
< table class = "memname" >
< tr >
< td class = "memname" > void SetQueueCapacity < / td >
< td > (< / td >
< td class = "paramtype" > int  < / td >
< td class = "paramname" > < em > capacity< / em > < / td > < td > )< / td >
< td > < / td >
< / tr >
< / table >
< / div > < div class = "memdoc" >
< p class = "definition" > Definition at line < a class = "el" href = "threadpool_8cc_source.html#l00043" > 43< / a > of file < a class = "el" href = "threadpool_8cc_source.html" > threadpool.cc< / a > .< / p >
< / div >
< / div >
2022-01-17 21:42:14 +01:00
< a id = "a176534e56452aa8789f0d4200975dc70" name = "a176534e56452aa8789f0d4200975dc70" > < / a >
2020-09-01 16:00:33 +02:00
< h2 class = "memtitle" > < span class = "permalink" > < a href = "#a176534e56452aa8789f0d4200975dc70" > ◆ < / a > < / span > StartWorkers()< / h2 >
< div class = "memitem" >
< div class = "memproto" >
< table class = "memname" >
< tr >
< td class = "memname" > void StartWorkers < / td >
< td > (< / td >
< td class = "paramname" > < / td > < td > )< / td >
< td > < / td >
< / tr >
< / table >
< / div > < div class = "memdoc" >
< p class = "definition" > Definition at line < a class = "el" href = "threadpool_8cc_source.html#l00049" > 49< / a > of file < a class = "el" href = "threadpool_8cc_source.html" > threadpool.cc< / a > .< / p >
< / div >
< / div >
< hr / > The documentation for this class was generated from the following files:< ul >
< li > < a class = "el" href = "threadpool_8h_source.html" > threadpool.h< / a > < / li >
< li > < a class = "el" href = "threadpool_8cc_source.html" > threadpool.cc< / a > < / li >
< / ul >
< / div > <!-- contents -->
< / div > <!-- doc - content -->
<!-- HTML footer for doxygen 1.8.18 -->
<!-- start footer part -->
< div id = "nav-path" class = "navpath" > <!-- id is needed for treeview function! -->
< ul >
2020-10-09 12:00:09 +02:00
< li class = "navelem" > < a class = "el" href = "namespaceoperations__research.html" > operations_research< / a > < / li > < li class = "navelem" > < a class = "el" href = "classoperations__research_1_1_thread_pool.html" > ThreadPool< / a > < / li >
2020-09-01 16:00:33 +02:00
< li class = "footer" > Generated by
< a href = "http://www.doxygen.org/index.html" >
2022-01-17 21:42:14 +01:00
< img class = "footer" src = "doxygen.png" alt = "doxygen" / > < / a > 1.9.3 < / li >
2020-09-01 16:00:33 +02:00
< / ul >
< / div >
< / body >
< / html >