blob: e75b3ad6203b4aea52c809917b0835d57f039199 [file] [log] [blame]
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://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"/>
<meta name="generator" content="Doxygen 1.8.6"/>
<title>Impala: impala::Promise&lt; T &gt; Class Template Reference</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="navtree.js"></script>
<script type="text/javascript">
$(document).ready(initResizable);
$(window).load(resizeHeight);
</script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
$(document).ready(function() { searchBox.OnSelectItem(0); });
</script>
<link href="doxygen.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 style="padding-left: 0.5em;">
<div id="projectname">Impala
</div>
<div id="projectbrief">Impalaistheopensource,nativeanalyticdatabaseforApacheHadoop.</div>
</td>
</tr>
</tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.6 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
<div id="navrow1" class="tabs">
<ul class="tablist">
<li><a href="index.html"><span>Main&#160;Page</span></a></li>
<li><a href="namespaces.html"><span>Namespaces</span></a></li>
<li class="current"><a href="annotated.html"><span>Classes</span></a></li>
<li><a href="files.html"><span>Files</span></a></li>
<li>
<div id="MSearchBox" class="MSearchBoxInactive">
<span class="left">
<img id="MSearchSelect" src="search/mag_sel.png"
onmouseover="return searchBox.OnSearchSelectShow()"
onmouseout="return searchBox.OnSearchSelectHide()"
alt=""/>
<input type="text" id="MSearchField" value="Search" accesskey="S"
onfocus="searchBox.OnSearchFieldFocus(true)"
onblur="searchBox.OnSearchFieldFocus(false)"
onkeyup="searchBox.OnSearchFieldChange(event)"/>
</span><span class="right">
<a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
</span>
</div>
</li>
</ul>
</div>
<div id="navrow2" class="tabs2">
<ul class="tablist">
<li><a href="annotated.html"><span>Class&#160;List</span></a></li>
<li><a href="classes.html"><span>Class&#160;Index</span></a></li>
<li><a href="inherits.html"><span>Class&#160;Hierarchy</span></a></li>
<li><a href="functions.html"><span>Class&#160;Members</span></a></li>
</ul>
</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">
$(document).ready(function(){initNavTree('classimpala_1_1Promise.html','');});
</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)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Classes</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Namespaces</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Files</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark">&#160;</span>Variables</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(6)"><span class="SelectionMark">&#160;</span>Typedefs</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(7)"><span class="SelectionMark">&#160;</span>Enumerations</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(8)"><span class="SelectionMark">&#160;</span>Enumerator</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(9)"><span class="SelectionMark">&#160;</span>Friends</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(10)"><span class="SelectionMark">&#160;</span>Macros</a></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> &#124;
<a href="#pri-attribs">Private Attributes</a> &#124;
<a href="classimpala_1_1Promise-members.html">List of all members</a> </div>
<div class="headertitle">
<div class="title">impala::Promise&lt; T &gt; Class Template Reference</div> </div>
</div><!--header-->
<div class="contents">
<p><code>#include &lt;<a class="el" href="promise_8h_source.html">promise.h</a>&gt;</code></p>
<div class="dynheader">
Collaboration diagram for impala::Promise&lt; T &gt;:</div>
<div class="dyncontent">
<div class="center"><iframe scrolling="no" frameborder="0" src="classimpala_1_1Promise__coll__graph.svg" width="406" height="288"><p><b>This browser is not able to show SVG: try Firefox, Chrome, Safari, or Opera instead.</b></p></iframe></div>
</div>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr class="memitem:a51923bc0ef48a2ba0112cb5d626bc750"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classimpala_1_1Promise.html#a51923bc0ef48a2ba0112cb5d626bc750">Promise</a> ()</td></tr>
<tr class="separator:a51923bc0ef48a2ba0112cb5d626bc750"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:abf8dc89791be540e5914372b06eee286"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classimpala_1_1Promise.html#abf8dc89791be540e5914372b06eee286">Set</a> (const T &amp;val)</td></tr>
<tr class="separator:abf8dc89791be540e5914372b06eee286"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a8f2164acd412822ae61ee0b93825ce5e"><td class="memItemLeft" align="right" valign="top">const T &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classimpala_1_1Promise.html#a8f2164acd412822ae61ee0b93825ce5e">Get</a> ()</td></tr>
<tr class="separator:a8f2164acd412822ae61ee0b93825ce5e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab1beb775a01496486c9f9e7e097f6893"><td class="memItemLeft" align="right" valign="top">const T &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classimpala_1_1Promise.html#ab1beb775a01496486c9f9e7e097f6893">Get</a> (int64_t timeout_millis, <a class="el" href="classbool.html">bool</a> *timed_out)</td></tr>
<tr class="separator:ab1beb775a01496486c9f9e7e097f6893"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a37e41565c6813bcea306266111464daa"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classbool.html">bool</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classimpala_1_1Promise.html#a37e41565c6813bcea306266111464daa">IsSet</a> ()</td></tr>
<tr class="memdesc:a37e41565c6813bcea306266111464daa"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns whether the value is set. <a href="#a37e41565c6813bcea306266111464daa">More...</a><br/></td></tr>
<tr class="separator:a37e41565c6813bcea306266111464daa"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pri-attribs"></a>
Private Attributes</h2></td></tr>
<tr class="memitem:a00a898260b39cea6812771e867574079"><td class="memItemLeft" align="right" valign="top">boost::condition_variable&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classimpala_1_1Promise.html#a00a898260b39cea6812771e867574079">val_set_cond_</a></td></tr>
<tr class="separator:a00a898260b39cea6812771e867574079"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a1962e1536723c8b1c0a0c8189967ffa8"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classbool.html">bool</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classimpala_1_1Promise.html#a1962e1536723c8b1c0a0c8189967ffa8">val_is_set_</a></td></tr>
<tr class="separator:a1962e1536723c8b1c0a0c8189967ffa8"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a09c670e4f8cabc4e4797e3688a32ccb2"><td class="memItemLeft" align="right" valign="top">boost::mutex&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classimpala_1_1Promise.html#a09c670e4f8cabc4e4797e3688a32ccb2">val_lock_</a></td></tr>
<tr class="separator:a09c670e4f8cabc4e4797e3688a32ccb2"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:acd2041e72b4314f09d46728c04c3455e"><td class="memItemLeft" align="right" valign="top">T&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classimpala_1_1Promise.html#acd2041e72b4314f09d46728c04c3455e">val_</a></td></tr>
<tr class="memdesc:acd2041e72b4314f09d46728c04c3455e"><td class="mdescLeft">&#160;</td><td class="mdescRight">The actual value transferred from producer to consumer. <a href="#acd2041e72b4314f09d46728c04c3455e">More...</a><br/></td></tr>
<tr class="separator:acd2041e72b4314f09d46728c04c3455e"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><h3>template&lt;typename T&gt;<br/>
class impala::Promise&lt; T &gt;</h3>
<p>A stripped-down replacement for boost::promise which, to the best of our knowledge, actually works. A single producer provides a single value by calling Set(..), which one or more consumers retrieve through calling Get(..). Consumers must be consistent in their use of <a class="el" href="classimpala_1_1Promise.html#a8f2164acd412822ae61ee0b93825ce5e">Get()</a>, i.e., for a particular promise all consumers should either have a timeout or not. </p>
<p>Definition at line <a class="el" href="promise_8h_source.html#l00032">32</a> of file <a class="el" href="promise_8h_source.html">promise.h</a>.</p>
</div><h2 class="groupheader">Constructor &amp; Destructor Documentation</h2>
<a class="anchor" id="a51923bc0ef48a2ba0112cb5d626bc750"></a>
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename T&gt; </div>
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="classimpala_1_1Promise.html">impala::Promise</a>&lt; T &gt;::<a class="el" href="classimpala_1_1Promise.html">Promise</a> </td>
<td>(</td>
<td class="paramname"></td><td>)</td>
<td></td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>Definition at line <a class="el" href="promise_8h_source.html#l00034">34</a> of file <a class="el" href="promise_8h_source.html">promise.h</a>.</p>
</div>
</div>
<h2 class="groupheader">Member Function Documentation</h2>
<a class="anchor" id="a8f2164acd412822ae61ee0b93825ce5e"></a>
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename T&gt; </div>
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">const T&amp; <a class="el" href="classimpala_1_1Promise.html">impala::Promise</a>&lt; T &gt;::Get </td>
<td>(</td>
<td class="paramname"></td><td>)</td>
<td></td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>Blocks until a value is set, and then returns a reference to that value. Once <a class="el" href="classimpala_1_1Promise.html#a8f2164acd412822ae61ee0b93825ce5e">Get()</a> returns, the returned value will not change, since Set(..) may not be called twice. </p>
<p>Definition at line <a class="el" href="promise_8h_source.html#l00059">59</a> of file <a class="el" href="promise_8h_source.html">promise.h</a>.</p>
<p>Referenced by <a class="el" href="admission-controller_8cc_source.html#l00265">impala::AdmissionController::AdmitQuery()</a>, <a class="el" href="hdfs-bulk-ops_8cc_source.html#l00129">impala::HdfsOperationSet::Execute()</a>, <a class="el" href="blocking-join-node_8cc_source.html#l00156">impala::BlockingJoinNode::Open()</a>, <a class="el" href="thrift-thread_8cc_source.html#l00027">impala::ThriftThread::start()</a>, <a class="el" href="thread_8cc_source.html#l00270">impala::Thread::StartThread()</a>, <a class="el" href="promise-test_8cc_source.html#l00048">impala::TEST()</a>, and <a class="el" href="resource-broker_8cc_source.html#l00472">impala::ResourceBroker::WaitForNotification()</a>.</p>
</div>
</div>
<a class="anchor" id="ab1beb775a01496486c9f9e7e097f6893"></a>
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename T&gt; </div>
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">const T&amp; <a class="el" href="classimpala_1_1Promise.html">impala::Promise</a>&lt; T &gt;::Get </td>
<td>(</td>
<td class="paramtype">int64_t&#160;</td>
<td class="paramname"><em>timeout_millis</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="classbool.html">bool</a> *&#160;</td>
<td class="paramname"><em>timed_out</em>&#160;</td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>Blocks until a value is set or the given timeout was reached. Returns a reference to that value which is invalid if the timeout was reached. Once <a class="el" href="classimpala_1_1Promise.html#a8f2164acd412822ae61ee0b93825ce5e">Get()</a> returns and *timed_out is false, the returned value will not change, since Set(..) may not be called twice. timeout_millis: The max wall-clock time in milliseconds to wait (must be &gt; 0). timed_out: Indicates whether <a class="el" href="classimpala_1_1Promise.html#a8f2164acd412822ae61ee0b93825ce5e">Get()</a> returned due to timeout. Must be non-NULL. </p>
<p>Definition at line <a class="el" href="promise_8h_source.html#l00073">73</a> of file <a class="el" href="promise_8h_source.html">promise.h</a>.</p>
</div>
</div>
<a class="anchor" id="a37e41565c6813bcea306266111464daa"></a>
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename T&gt; </div>
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="classbool.html">bool</a> <a class="el" href="classimpala_1_1Promise.html">impala::Promise</a>&lt; T &gt;::IsSet </td>
<td>(</td>
<td class="paramname"></td><td>)</td>
<td></td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>Returns whether the value is set. </p>
<p>Definition at line <a class="el" href="promise_8h_source.html#l00092">92</a> of file <a class="el" href="promise_8h_source.html">promise.h</a>.</p>
<p>Referenced by <a class="el" href="admission-controller_8cc_source.html#l00265">impala::AdmissionController::AdmitQuery()</a>, and <a class="el" href="admission-controller_8cc_source.html#l00595">impala::AdmissionController::DequeueLoop()</a>.</p>
</div>
</div>
<a class="anchor" id="abf8dc89791be540e5914372b06eee286"></a>
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename T&gt; </div>
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">void <a class="el" href="classimpala_1_1Promise.html">impala::Promise</a>&lt; T &gt;::Set </td>
<td>(</td>
<td class="paramtype">const T &amp;&#160;</td>
<td class="paramname"><em>val</em></td><td>)</td>
<td></td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>Copies val into this promise, and notifies any consumers blocked in <a class="el" href="classimpala_1_1Promise.html#a8f2164acd412822ae61ee0b93825ce5e">Get()</a>. It is invalid to call <a class="el" href="classimpala_1_1Promise.html#abf8dc89791be540e5914372b06eee286">Set()</a> twice. </p>
<p>Note: this must be called with 'val_lock_' taken. There are places where we use this object with this pattern: { <a class="el" href="classimpala_1_1Promise.html">Promise</a> p; ... p.get(); } &lt; promise object gets destroyed &gt; Calling notify_all() with the val_lock_ guarantees that the thread calling <a class="el" href="classimpala_1_1Promise.html#abf8dc89791be540e5914372b06eee286">Set()</a> is done and the promise is safe to delete. </p>
<p>Definition at line <a class="el" href="promise_8h_source.html#l00038">38</a> of file <a class="el" href="promise_8h_source.html">promise.h</a>.</p>
<p>Referenced by <a class="el" href="admission-controller_8cc_source.html#l00265">impala::AdmissionController::AdmitQuery()</a>, <a class="el" href="blocking-join-node_8cc_source.html#l00136">impala::BlockingJoinNode::BuildSideThread()</a>, <a class="el" href="admission-controller_8cc_source.html#l00595">impala::AdmissionController::DequeueLoop()</a>, <a class="el" href="buffered-block-mgr-test_8cc_source.html#l00074">impala::BufferedBlockMgrTest::GetFreeBlock()</a>, <a class="el" href="hdfs-bulk-ops_8cc_source.html#l00162">impala::HdfsOperationSet::MarkOneOpDone()</a>, <a class="el" href="authentication_8cc_source.html#l00440">impala::SaslAuthProvider::RunKinit()</a>, <a class="el" href="thrift-thread_8cc_source.html#l00054">impala::ThriftThread::RunRunnable()</a>, <a class="el" href="promise-test_8cc_source.html#l00044">impala::RunThread()</a>, <a class="el" href="thread_8cc_source.html#l00288">impala::Thread::SuperviseThread()</a>, and <a class="el" href="promise-test_8cc_source.html#l00074">impala::TEST()</a>.</p>
</div>
</div>
<h2 class="groupheader">Member Data Documentation</h2>
<a class="anchor" id="acd2041e72b4314f09d46728c04c3455e"></a>
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename T&gt; </div>
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">T <a class="el" href="classimpala_1_1Promise.html">impala::Promise</a>&lt; T &gt;::val_</td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">private</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>The actual value transferred from producer to consumer. </p>
<p>Definition at line <a class="el" href="promise_8h_source.html#l00105">105</a> of file <a class="el" href="promise_8h_source.html">promise.h</a>.</p>
<p>Referenced by <a class="el" href="promise_8h_source.html#l00059">impala::Promise&lt; bool &gt;::Get()</a>, and <a class="el" href="promise_8h_source.html#l00038">impala::Promise&lt; bool &gt;::Set()</a>.</p>
</div>
</div>
<a class="anchor" id="a1962e1536723c8b1c0a0c8189967ffa8"></a>
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename T&gt; </div>
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="classbool.html">bool</a> <a class="el" href="classimpala_1_1Promise.html">impala::Promise</a>&lt; T &gt;::val_is_set_</td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">private</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>Definition at line <a class="el" href="promise_8h_source.html#l00101">101</a> of file <a class="el" href="promise_8h_source.html">promise.h</a>.</p>
<p>Referenced by <a class="el" href="promise_8h_source.html#l00059">impala::Promise&lt; bool &gt;::Get()</a>, <a class="el" href="promise_8h_source.html#l00092">impala::Promise&lt; bool &gt;::IsSet()</a>, and <a class="el" href="promise_8h_source.html#l00038">impala::Promise&lt; bool &gt;::Set()</a>.</p>
</div>
</div>
<a class="anchor" id="a09c670e4f8cabc4e4797e3688a32ccb2"></a>
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename T&gt; </div>
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">boost::mutex <a class="el" href="classimpala_1_1Promise.html">impala::Promise</a>&lt; T &gt;::val_lock_</td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">private</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>Definition at line <a class="el" href="promise_8h_source.html#l00102">102</a> of file <a class="el" href="promise_8h_source.html">promise.h</a>.</p>
<p>Referenced by <a class="el" href="promise_8h_source.html#l00059">impala::Promise&lt; bool &gt;::Get()</a>, <a class="el" href="promise_8h_source.html#l00092">impala::Promise&lt; bool &gt;::IsSet()</a>, and <a class="el" href="promise_8h_source.html#l00038">impala::Promise&lt; bool &gt;::Set()</a>.</p>
</div>
</div>
<a class="anchor" id="a00a898260b39cea6812771e867574079"></a>
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename T&gt; </div>
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">boost::condition_variable <a class="el" href="classimpala_1_1Promise.html">impala::Promise</a>&lt; T &gt;::val_set_cond_</td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">private</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>These variables deal with coordination between consumer and producer, and protect access to val_; </p>
<p>Definition at line <a class="el" href="promise_8h_source.html#l00100">100</a> of file <a class="el" href="promise_8h_source.html">promise.h</a>.</p>
<p>Referenced by <a class="el" href="promise_8h_source.html#l00059">impala::Promise&lt; bool &gt;::Get()</a>, and <a class="el" href="promise_8h_source.html#l00038">impala::Promise&lt; bool &gt;::Set()</a>.</p>
</div>
</div>
<hr/>The documentation for this class was generated from the following file:<ul>
<li>be/src/util/<a class="el" href="promise_8h_source.html">promise.h</a></li>
</ul>
</div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
<ul>
<li class="navelem"><a class="el" href="namespaceimpala.html">impala</a></li><li class="navelem"><a class="el" href="classimpala_1_1Promise.html">Promise</a></li>
<li class="footer">Generated on Thu May 7 2015 16:10:50 for Impala by
<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.6 </li>
</ul>
</div>
</body>
</html>