summaryrefslogtreecommitdiff
path: root/examples/NT_Service/ntsvc.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'examples/NT_Service/ntsvc.cpp')
-rw-r--r--examples/NT_Service/ntsvc.cpp13
1 files changed, 4 insertions, 9 deletions
diff --git a/examples/NT_Service/ntsvc.cpp b/examples/NT_Service/ntsvc.cpp
index 8d16df53e0a..f21dec5dad7 100644
--- a/examples/NT_Service/ntsvc.cpp
+++ b/examples/NT_Service/ntsvc.cpp
@@ -27,11 +27,11 @@ Service::Service (void)
reactor (ACE_Reactor::instance ());
}
-Service::~Service (void)
-{
- if (ACE_Reactor::instance ()->cancel_timer(this) == -1)
+Service::~Service (void)
+{
+ if (ACE_Reactor::instance ()->cancel_timer(this) == -1)
ACE_ERROR ((LM_ERROR,
- "Service::~Service failed to cancel_timer.\n"));
+ "Service::~Service failed to cancel_timer.\n"));
}
// This method is called when the service gets a control request. It
@@ -111,8 +111,3 @@ Service::svc (void)
return 0;
}
-#if defined (ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION)
-template class ACE_Singleton<Service, ACE_Mutex>;
-#elif defined (ACE_HAS_TEMPLATE_INSTANTIATION_PRAGMA)
-#pragma instantiate ACE_Singleton<Service, ACE_Mutex>
-#endif /* ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION */