blob: 56766e69947f79033b9f8736ddcde3947e6ca07b [file] [log] [blame]
<!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"/>
<meta name="generator" content="Doxygen 1.8.18"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>Crashpad: crashpad::ScopedForbidReturn Class 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="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="crashpad_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 id="projectalign" style="padding-left: 0.5em;">
<div id="projectname">Crashpad
</div>
</td>
</tr>
</tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.18 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'Search');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
initMenu('',true,false,'search.php','Search');
$(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
<!-- 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 id="nav-path" class="navpath">
<ul>
<li class="navelem"><a class="el" href="namespacecrashpad.html">crashpad</a></li><li class="navelem"><a class="el" href="classcrashpad_1_1ScopedForbidReturn.html">ScopedForbidReturn</a></li> </ul>
</div>
</div><!-- top -->
<div class="header">
<div class="summary">
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="classcrashpad_1_1ScopedForbidReturn-members.html">List of all members</a> </div>
<div class="headertitle">
<div class="title">crashpad::ScopedForbidReturn Class Reference</div> </div>
</div><!--header-->
<div class="contents">
<p>Asserts that a scope must not be exited while unsafe.
<a href="classcrashpad_1_1ScopedForbidReturn.html#details">More...</a></p>
<p><code>#include &quot;util/misc/scoped_forbid_return.h&quot;</code></p>
<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:aa2e81b3c70f574d8be67d50cf5fc2951"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcrashpad_1_1ScopedForbidReturn.html#aa2e81b3c70f574d8be67d50cf5fc2951">Arm</a> ()</td></tr>
<tr class="memdesc:aa2e81b3c70f574d8be67d50cf5fc2951"><td class="mdescLeft">&#160;</td><td class="mdescRight">Arms the object so that it will abort execution when destroyed. <a href="classcrashpad_1_1ScopedForbidReturn.html#aa2e81b3c70f574d8be67d50cf5fc2951">More...</a><br /></td></tr>
<tr class="separator:aa2e81b3c70f574d8be67d50cf5fc2951"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a5b5c04a646632f369c40d3e8f6d14ddd"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcrashpad_1_1ScopedForbidReturn.html#a5b5c04a646632f369c40d3e8f6d14ddd">Disarm</a> ()</td></tr>
<tr class="memdesc:a5b5c04a646632f369c40d3e8f6d14ddd"><td class="mdescLeft">&#160;</td><td class="mdescRight">Arms the object so that it will abort execution when destroyed. <a href="classcrashpad_1_1ScopedForbidReturn.html#a5b5c04a646632f369c40d3e8f6d14ddd">More...</a><br /></td></tr>
<tr class="separator:a5b5c04a646632f369c40d3e8f6d14ddd"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><p>Asserts that a scope must not be exited while unsafe. </p>
<p>An object of this class has two states: armed and disarmed. A disarmed object is a harmless no-op. An armed object will abort execution upon destruction. Newly-constructed objects are armed by default.</p>
<p>These objects may be used to assert that a scope not be exited while it is unsafe to do so. If it ever becomes safe to leave such a scope, an object can be disarmed. </p>
</div><h2 class="groupheader">Member Function Documentation</h2>
<a id="aa2e81b3c70f574d8be67d50cf5fc2951"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aa2e81b3c70f574d8be67d50cf5fc2951">&#9670;&nbsp;</a></span>Arm()</h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">void crashpad::ScopedForbidReturn::Arm </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>Arms the object so that it will abort execution when destroyed. </p>
<p>The most recent call to <a class="el" href="classcrashpad_1_1ScopedForbidReturn.html#aa2e81b3c70f574d8be67d50cf5fc2951" title="Arms the object so that it will abort execution when destroyed.">Arm()</a> or <a class="el" href="classcrashpad_1_1ScopedForbidReturn.html#a5b5c04a646632f369c40d3e8f6d14ddd" title="Arms the object so that it will abort execution when destroyed.">Disarm()</a> sets the state of the object. </p>
</div>
</div>
<a id="a5b5c04a646632f369c40d3e8f6d14ddd"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a5b5c04a646632f369c40d3e8f6d14ddd">&#9670;&nbsp;</a></span>Disarm()</h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">void crashpad::ScopedForbidReturn::Disarm </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>Arms the object so that it will abort execution when destroyed. </p>
<p>The most recent call to <a class="el" href="classcrashpad_1_1ScopedForbidReturn.html#aa2e81b3c70f574d8be67d50cf5fc2951" title="Arms the object so that it will abort execution when destroyed.">Arm()</a> or <a class="el" href="classcrashpad_1_1ScopedForbidReturn.html#a5b5c04a646632f369c40d3e8f6d14ddd" title="Arms the object so that it will abort execution when destroyed.">Disarm()</a> sets the state of the object. </p>
</div>
</div>
<hr/>The documentation for this class was generated from the following files:<ul>
<li>util/misc/scoped_forbid_return.h</li>
<li>util/misc/scoped_forbid_return.cc</li>
</ul>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.18
</small></address>
</body>
</html>