summaryrefslogtreecommitdiff
path: root/ACE/ace/Event.cpp
diff options
context:
space:
mode:
authorJohnny Willemsen <jwillemsen@remedy.nl>2007-03-28 10:47:04 +0000
committerJohnny Willemsen <jwillemsen@remedy.nl>2007-03-28 10:47:04 +0000
commit13d3944d7ca8e368ecd6c1f4bf4b9c24a6580cc7 (patch)
tree817b6a470ea80a1e7ee8c96522ca0a634505d40f /ACE/ace/Event.cpp
parent46ef3e8122ca81246bfbcd7d239783d6a0150255 (diff)
downloadATCD-13d3944d7ca8e368ecd6c1f4bf4b9c24a6580cc7.tar.gz
Wed Mar 28 10:45:22 UTC 2007 Johnny Willemsen <jwillemsen@remedy.nl>
Diffstat (limited to 'ACE/ace/Event.cpp')
-rw-r--r--ACE/ace/Event.cpp12
1 files changed, 7 insertions, 5 deletions
diff --git a/ACE/ace/Event.cpp b/ACE/ace/Event.cpp
index bc21465d27a..f3f2c26bd68 100644
--- a/ACE/ace/Event.cpp
+++ b/ACE/ace/Event.cpp
@@ -16,15 +16,17 @@ ACE_Event::ACE_Event (int manual_reset,
int initial_state,
int type,
const ACE_TCHAR *name,
- void *arg)
- : removed_ (0)
+ void *arg,
+ LPSECURITY_ATTRIBUTES sa)
+ : removed_ (false)
{
if (ACE_OS::event_init (&this->handle_,
manual_reset,
initial_state,
type,
name,
- arg) != 0)
+ arg,
+ sa) != 0)
ACE_ERROR ((LM_ERROR,
ACE_LIB_TEXT ("%p\n"),
ACE_LIB_TEXT ("ACE_Event::ACE_Event")));
@@ -39,9 +41,9 @@ int
ACE_Event::remove (void)
{
int result = 0;
- if (this->removed_ == 0)
+ if (!this->removed_)
{
- this->removed_ = 1;
+ this->removed_ = true;
result = ACE_OS::event_destroy (&this->handle_);
}
return result;