summaryrefslogtreecommitdiff
path: root/tests/Signal_Test.cpp
diff options
context:
space:
mode:
authorschmidt <douglascraigschmidt@users.noreply.github.com>1999-09-19 17:00:37 +0000
committerschmidt <douglascraigschmidt@users.noreply.github.com>1999-09-19 17:00:37 +0000
commit9ce81ea628a64f2cb2e74c0d84a9f53604587509 (patch)
tree8d488d4a039ca3cceb9aae42b4627ca07811da81 /tests/Signal_Test.cpp
parent86dde7964150d6cad370100135bd0773d8d9c2b3 (diff)
downloadATCD-9ce81ea628a64f2cb2e74c0d84a9f53604587509.tar.gz
ChangeLogTag:Sun Sep 19 10:39:30 1999 Douglas C. Schmidt <schmidt@mambo.cs.wustl.edu>
Diffstat (limited to 'tests/Signal_Test.cpp')
-rw-r--r--tests/Signal_Test.cpp14
1 files changed, 4 insertions, 10 deletions
diff --git a/tests/Signal_Test.cpp b/tests/Signal_Test.cpp
index e8a408d393f..2873bf96140 100644
--- a/tests/Signal_Test.cpp
+++ b/tests/Signal_Test.cpp
@@ -45,7 +45,7 @@ static pid_t parent_pid = 0;
static int test_number = 0;
// Coordinate the shutdown between threads.
-static ACE_Atomic_Op<ACE_SYNCH_RECURSIVE_MUTEX, int> shut_down (0);
+static sig_atomic_t shut_down = 0;
static int
handle_signal (int signum)
@@ -57,7 +57,7 @@ handle_signal (int signum)
switch (signum)
{
case SIGCHLD:
- // Signal to the main thread to shut_down.
+ // Signal to the main thread to shut down.
shut_down = 1;
// This should only occur for the asynchronous case, so we don't
@@ -66,12 +66,12 @@ handle_signal (int signum)
case SIGINT:
/* FALLTHRU */
case SIGTERM:
- // Shut_Down our thread using <ACE_Thread_Manager::exit>.
+ // Shut down our thread using <ACE_Thread_Manager::exit>.
ACE_DEBUG ((LM_DEBUG,
ASYS_TEXT ("(%P|%t) shutting down due to %S\n"),
signum));
- // Signal to the worker thread to shut_down.
+ // Signal to the worker thread to shut down.
shut_down = 1;
// Bail out and close down.
@@ -464,12 +464,6 @@ main (int argc, ASYS_TCHAR *argv[])
return 0;
}
-#if defined (ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION)
-template class ACE_Atomic_Op<ACE_SYNCH_RECURSIVE_MUTEX, int>;
-#elif defined (ACE_HAS_TEMPLATE_INSTANTIATION_PRAGMA)
-#pragma instantiate ACE_Atomic_Op<ACE_SYNCH_RECURSIVE_MUTEX, int>
-#endif /* ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION */
-
#else
int
main (int, ASYS_TCHAR *[])