summaryrefslogtreecommitdiff
path: root/ace/Service_Object.cpp
diff options
context:
space:
mode:
authorschmidt <douglascraigschmidt@users.noreply.github.com>1997-09-12 03:37:51 +0000
committerschmidt <douglascraigschmidt@users.noreply.github.com>1997-09-12 03:37:51 +0000
commitf324b831958855fb9f9f8030d9ae9fadcb410b82 (patch)
treeb7abff4feff6894c93ec2ec491fcc93a0df9199c /ace/Service_Object.cpp
parentb28d9da6e806044a8f8079cc902d3b295b4d484f (diff)
downloadATCD-f324b831958855fb9f9f8030d9ae9fadcb410b82.tar.gz
*** empty log message ***
Diffstat (limited to 'ace/Service_Object.cpp')
-rw-r--r--ace/Service_Object.cpp86
1 files changed, 43 insertions, 43 deletions
diff --git a/ace/Service_Object.cpp b/ace/Service_Object.cpp
index 881f07e002b..b11ec4c0888 100644
--- a/ace/Service_Object.cpp
+++ b/ace/Service_Object.cpp
@@ -11,73 +11,73 @@
ACE_ALLOC_HOOK_DEFINE(ACE_Service_Object)
-ACE_Service_Object::ACE_Service_Object (void)
+ACE_ALLOC_HOOK_DEFINE(ACE_Service_Type)
+
+void
+ACE_Service_Type::dump (void) const
{
- ACE_TRACE ("ACE_Service_Object::ACE_Service_Object");
+ ACE_TRACE ("ACE_Service_Type::dump");
}
-ACE_Service_Object::~ACE_Service_Object (void)
+ACE_Service_Type::ACE_Service_Type (const char *n,
+ ACE_Service_Type_Impl *t,
+ const ACE_SHLIB_HANDLE h,
+ int active)
+ : name_ (0),
+ type_ (t),
+ handle_ (h),
+ active_ (active)
{
- ACE_TRACE ("ACE_Service_Object::~ACE_Service_Object");
+ ACE_TRACE ("ACE_Service_Type::ACE_Service_Type");
+ this->name (n);
}
-int
-ACE_Service_Object::suspend (void)
+ACE_Service_Type::~ACE_Service_Type (void)
{
- ACE_TRACE ("ACE_Service_Object::suspend");
- return 0;
+ ACE_TRACE ("ACE_Service_Type::~ACE_Service_Type");
+ this->type_->fini ();
+ if (this->handle_ != 0)
+ ACE_OS::dlclose ((ACE_SHLIB_HANDLE) this->handle_);
+ delete [] (char *) this->name_;
}
-int
-ACE_Service_Object::resume (void)
+void
+ACE_Service_Type::suspend (void) const
{
- ACE_TRACE ("ACE_Service_Object::resume");
- return 0;
+ ACE_TRACE ("ACE_Service_Type::suspend");
+ ((ACE_Service_Type *) this)->active_ = 0;
+ this->type_->suspend ();
}
-ACE_ALLOC_HOOK_DEFINE(ACE_Service_Type)
-
void
-ACE_Service_Type::dump (void) const
+ACE_Service_Type::resume (void) const
{
- ACE_TRACE ("ACE_Service_Type::dump");
+ ACE_TRACE ("ACE_Service_Type::resume");
+ ((ACE_Service_Type *) this)->active_ = 1;
+ this->type_->resume ();
}
-ACE_Service_Type::ACE_Service_Type (const void *so,
- const char *s_name,
- unsigned int f)
- : name_ (0),
- obj_ (so),
- flags_ (f)
+ACE_Service_Object::ACE_Service_Object (void)
{
- ACE_TRACE ("ACE_Service_Type::ACE_Service_Type");
- this->name (s_name);
+ ACE_TRACE ("ACE_Service_Object::ACE_Service_Object");
}
-ACE_Service_Type::~ACE_Service_Type (void)
+ACE_Service_Object::~ACE_Service_Object (void)
{
- ACE_TRACE ("ACE_Service_Type::~ACE_Service_Type");
-
- // It's ok to call this, even though we may have already deleted it
- // in the fini() method since it would then be NULL.
- delete [] (char *) this->name_;
+ ACE_TRACE ("ACE_Service_Object::~ACE_Service_Object");
}
int
-ACE_Service_Type::fini (void) const
+ACE_Service_Object::suspend (void)
{
- ACE_TRACE ("ACE_Service_Type::fini");
- ACE_DEBUG ((LM_DEBUG, "destroying %s, flags = %d\n",
- this->name_, this->flags_));
-
- delete [] (char *) this->name_;
- ((ACE_Service_Type *) this)->name_ = 0;
-
- if (ACE_BIT_ENABLED (this->flags_, ACE_Service_Type::DELETE_OBJ))
- operator delete ((void *) this->object ()); // cast to remove const-ness
-
- if (ACE_BIT_ENABLED (this->flags_, ACE_Service_Type::DELETE_THIS))
- delete (ACE_Service_Type *) this;
+ ACE_TRACE ("ACE_Service_Object::suspend");
+ return 0;
+}
+int
+ACE_Service_Object::resume (void)
+{
+ ACE_TRACE ("ACE_Service_Object::resume");
return 0;
}
+