2
0
mirror of https://github.com/boostorg/test.git synced 2026-01-26 19:12:10 +00:00
Files
test/doc/components/execution_monitor/execution_monitor.html
Gennadiy Rozental c53868d48b Licence update
[SVN r20696]
2003-11-06 07:32:30 +00:00

54 lines
2.9 KiB
HTML

<HTML>
<HEAD>
<TITLE>boost::execution_monitor</TITLE>
<LINK rel="stylesheet" type="text/css" href="../../style/btl.css" media="screen">
<LINK rel="stylesheet" type="text/css" href="../../style/btl-print.css" media="print">
<META http-equiv="Content-Language" content="en-us">
<META http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</HEAD>
<BODY>
<DIV class="header"> <A href="../../index.html">Boost.Test</A> > <A href="../index.html">Components</A> > <A href="index.html">The
Execution Monitor</A> > <SPAN class="current_article">boost::execution_monitor</SPAN> </DIV>
<DIV class="body"> <IMG src='../../btl1.gif' width='252' height='43' alt="Boost Test logo">
<H1 class="subtitle">boost::execution_monitor</H1>
<P class="first_line_indented">boost::execution_monitor uniformly detects and reports the occurrence of several types of
signals and exceptions, reducing various errors to a uniform <A href="execution_exception.html">boost::execution_exception</A>
which is returned to a caller.</P>
<PRE class="code"><SPAN class="reserv-word">class</SPAN> <SPAN class="new-term">execution_monitor</SPAN> {
public:
virtual ~execution_monitor();
int execute( bool catch_system_errors = true, int timeout = 0 );
virtual int function() = 0;
}; // exception monitor
</PRE>
<H3>execution_monitor::~execution_monitor()</H3>
<P class="indented">Supplied cause this class intended to be used polymorphically.</P>
<H3>execution_monitor::execute( bool catch_system_errors, int timeout )</H3>
<P>Effects:</P>
<P class="indented"> Calls the execution_monitor::function() inside a try/catch block which may also include other unspecified
platform dependent error detection code. Throws <A href="execution_exception.html">boost::execution_exception</A> on an
uncaught C++ exception, timeout alarm and, if catch_system_errors flag is true, a hardware or software signal, trap, or
other exception. If catch_system_errors flag is false program will crash in case of system level error occur. execution_monitor::execute()
<SPAN style="text-decoration: underline">doesn't</SPAN> consider it an error for the execution_monitor::function() to
return a non-zero value. </P>
<P>Returns:
<P>
<P class="indented"> The integer value returned by the execution_monitor::function(). </P>
<H3>execution_monitor::function()</H3>
<P class="indented">User supplied function to monitor.</P>
</DIV>
<DIV class="footer">
<DIV class="footer-body">
<P> &copy <A name="Copyright">Copyright</A> <A href='mailto:rogeeff@fusemail.com'>Gennadiy Rozental</A> 2001-2003. <BR>
Use, modification, and distribution are subject to the Boost Software License, Version 1.0.
(See accompanying file <A href="../../../../../LICENSE_1_0.txt">LICENSE_1_0.txt</A> or copy at
<A href="http://www.boost.org/LICENSE_1_0.txt">www.boost.org/LICENSE_1_0.txt</A>)</P>
<P>Revised: 9 June, 2003</P>
</DIV>
</DIV>
</BODY>
</HTML>