File: Poco.Event.html

package info (click to toggle)
poco-doc 1.3.6-1
  • links: PTS
  • area: main
  • in suites: buster, jessie, jessie-kfreebsd, squeeze, stretch, wheezy
  • size: 10,076 kB
  • ctags: 9,611
  • sloc: makefile: 31
file content (76 lines) | stat: -rw-r--r-- 4,426 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
<!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>
<title>Class Poco::Event</title>
<meta http-equiv="content-type" content="text/html; charset=utf-8"/>
<meta name="author" content="Applied Informatics Software Engineering GmbH and Contributors"/>
<meta name="publisher" content="Applied Informatics Software Engineering GmbH and Contributors"/>
<meta name="copyright" content="Copyright (c) 2009, Applied Informatics Software Engineering GmbH and Contributors"/>
<meta name="language" content="en"/>
<meta name="date" content="2009-11-24"/>
<meta name="generator" content="PocoDoc"/>
<link rel="stylesheet" href="css/styles.css" type="text/css"/>
</head>
<body bgcolor="#ffffff" leftmargin="0" topmargin="0">
<div class="header">
<h1 class="namespace"><a href="Poco.html" class="namespace">Poco</a></h1>
<h1 class="symbol">class Event</h1>
</div>
<div class="body">
<p>
<b>Library:</b> Foundation<br />
<b>Package:</b> Threading<br />
<b>Header:</b> Poco/Event.h</p>
<h2>Description</h2>
<div class="description">
<p>An <a href="Poco.Event.html" title="class Poco::Event">Event</a> is a synchronization object that allows one thread to signal one or more other threads that a certain event has happened. Usually, one thread signals an event, while one or more other threads wait for an event to become signalled. </p>
</div>
<h2>Inheritance</h2>
<p><b>Direct Base Classes: </b>EventImpl</p>
<p><b>All Base Classes: </b>EventImpl</p>
<h2>Member Summary</h2>
<p><b>Member Functions: </b><a href="Poco.Event.html#5652" title="Poco::Event::reset()">reset</a>, <a href="Poco.Event.html#5646" title="Poco::Event::set()">set</a>, <a href="Poco.Event.html#5650" title="Poco::Event::tryWait()">tryWait</a>, <a href="Poco.Event.html#5647" title="Poco::Event::wait()">wait</a></p>
<h2>Constructors</h2>
<h3><a name="5643">Event</a></h3>
<p class="decl"><a href="Poco.Event.html" title="class Poco::Event">Event</a>(<br />&nbsp;&nbsp;&nbsp;&nbsp;bool autoReset = true<br />);</p>
<div class="description">
<p>Creates the event. If autoReset is true, the event is automatically reset after a <a href="Poco.Event.html#5647" title="Poco::Event::wait()">wait</a>() successfully returns. </p>
</div>
<h2>Destructor</h2>
<h3><a name="5645">~Event</a></h3>
<p class="decl">~<a href="Poco.Event.html" title="class Poco::Event">Event</a>();</p>
<div class="description">
<p>Destroys the event. </p>
</div>
<h2>Member Functions</h2>
<h3><a name="5652">reset</a> <img src="images/inline.gif" alt="inline" title="inline" style="vertical-align:baseline;" border="0" /> </h3>
<p class="decl">void reset();</p>
<div class="description">
<p>Resets the event to unsignalled state. </p>
</div>
<h3><a name="5646">set</a> <img src="images/inline.gif" alt="inline" title="inline" style="vertical-align:baseline;" border="0" /> </h3>
<p class="decl">void set();</p>
<div class="description">
<p>Signals the event. If autoReset is true, only one thread waiting for the event  can resume execution. If autoReset is false, all waiting threads can resume execution. </p>
</div>
<h3><a name="5650">tryWait</a> <img src="images/inline.gif" alt="inline" title="inline" style="vertical-align:baseline;" border="0" /> </h3>
<p class="decl">bool tryWait(<br />&nbsp;&nbsp;&nbsp;&nbsp;long milliseconds<br />);</p>
<div class="description">
<p>Waits for the event to become signalled. Returns true if the event became signalled within the specified time interval, false otherwise. </p>
</div>
<h3><a name="5647">wait</a> <img src="images/inline.gif" alt="inline" title="inline" style="vertical-align:baseline;" border="0" /> </h3>
<p class="decl">void wait();</p>
<div class="description">
<p>Waits for the event to become signalled. </p>
</div>
<h3><a name="5648">wait</a></h3>
<p class="decl">void wait(<br />&nbsp;&nbsp;&nbsp;&nbsp;long milliseconds<br />);</p>
<div class="description">
<p>Waits for the event to become signalled. Throws a <a href="Poco.TimeoutException.html" title="class Poco::TimeoutException">TimeoutException</a> if the event does not become signalled within the specified time interval. </p>
</div>
<p class="footer">POCO C++ Libraries 1.3.6-all<br />
Copyright &copy; 2009, <a href="http://pocoproject.org/" target="_blank">Applied Informatics Software Engineering GmbH and Contributors</a></p>

</div>
</body>
</html>