summaryrefslogtreecommitdiff
path: root/performance-tests
diff options
context:
space:
mode:
authornanbor <nanbor@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1998-05-12 08:05:05 +0000
committernanbor <nanbor@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1998-05-12 08:05:05 +0000
commit433da7b8bbbea966d9f3b843678a1cfe65c1061e (patch)
tree7e8c94ff13e0f488b0364184749edbf761a10042 /performance-tests
parente3cbeabe7f6ea82aab2afcbe229d1daf871d7256 (diff)
downloadATCD-433da7b8bbbea966d9f3b843678a1cfe65c1061e.tar.gz
*** empty log message ***
Diffstat (limited to 'performance-tests')
-rw-r--r--performance-tests/Misc/childbirth_time.cpp12
1 files changed, 7 insertions, 5 deletions
diff --git a/performance-tests/Misc/childbirth_time.cpp b/performance-tests/Misc/childbirth_time.cpp
index 2079a507162..e0818cc7ad3 100644
--- a/performance-tests/Misc/childbirth_time.cpp
+++ b/performance-tests/Misc/childbirth_time.cpp
@@ -62,6 +62,8 @@
#include "ace/Profile_Timer.h"
#include "ace/Thread_Manager.h"
+#define ACE_STOP_SIGN ACE_OS::sleep (0)
+
#define MAX_NO_ITERATION 10000
#if defined (ACE_WIN32)
#define SUBPROGRAM "date.exe"
@@ -101,7 +103,7 @@ prof_ace_process (size_t iteration)
for (size_t c = 0; c < iteration; c++)
{
- ACE_OS::sleep (0);
+ ACE_STOP_SIGN;
ptimer.start ();
result = aProcess.spawn (popt);
ptimer.stop ();
@@ -137,7 +139,7 @@ prof_fork (size_t iteration)
for (size_t i = 0; i < iteration; i++)
{
- ACE_OS::sleep (0);
+ ACE_STOP_SIGN;
ptimer.start ();
switch (ACE_OS::fork ())
{
@@ -176,7 +178,7 @@ prof_native_thread (size_t iteration)
for (size_t i = 0; i < iteration; i++)
{
- ACE_OS::sleep (0);
+ ACE_STOP_SIGN;
ptimer.start ();
for (int j = 0; j < MULTIPLY_FACTOR; j++)
{
@@ -224,7 +226,7 @@ prof_ace_os_thread (size_t iteration)
for (size_t i = 0; i < iteration; i++)
{
- ACE_OS::sleep (0);
+ ACE_STOP_SIGN;
ptimer.start ();
for (int j = 0; j < MULTIPLY_FACTOR; j++)
@@ -261,7 +263,7 @@ prof_tm_thread (size_t iteration)
for (size_t i = 0; i < iteration; i++)
{
- ACE_OS::sleep (0);
+ ACE_STOP_SIGN;
ptimer.start ();
if (ACE_Thread_Manager::instance ()->spawn_n (MULTIPLY_FACTOR,