diff options
author | nanbor <nanbor@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 1998-06-28 08:23:44 +0000 |
---|---|---|
committer | nanbor <nanbor@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 1998-06-28 08:23:44 +0000 |
commit | 4d3e3dd8c18ad1dc7e39cde8b0e6e49bd5b45103 (patch) | |
tree | 76506afed47e75b463406c653b33e5815762482d /performance-tests/Synch-Benchmarks/pipe_thr_test.cpp | |
parent | fb27cb2b867eeebad87bd8815c085743c47fce0e (diff) | |
download | ATCD-4d3e3dd8c18ad1dc7e39cde8b0e6e49bd5b45103.tar.gz |
*** empty log message ***
Diffstat (limited to 'performance-tests/Synch-Benchmarks/pipe_thr_test.cpp')
-rw-r--r-- | performance-tests/Synch-Benchmarks/pipe_thr_test.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/performance-tests/Synch-Benchmarks/pipe_thr_test.cpp b/performance-tests/Synch-Benchmarks/pipe_thr_test.cpp index ff067b41532..839973db07d 100644 --- a/performance-tests/Synch-Benchmarks/pipe_thr_test.cpp +++ b/performance-tests/Synch-Benchmarks/pipe_thr_test.cpp @@ -3,11 +3,11 @@ #define ACE_BUILD_SVC_DLL #include "ace/Thread_Manager.h" #include "Options.h" -#include "Benchmark.h" +#include "Benchmark_Performance.h" #if defined (ACE_HAS_THREADS) -class ACE_Svc_Export Pipe_Thr_Test : public Benchmark +class ACE_Svc_Export Pipe_Thr_Test : public Benchmark_Performance { public: virtual int init (int, char **); @@ -25,7 +25,7 @@ Pipe_Thr_Test::reader (Pipe_Thr_Test *t) ACE_HANDLE handle = t->pipe_handles[0]; int ni = t->thr_id (); size_t length = options.msg_size (); - char *to; + char *to; ACE_NEW_RETURN (to, char[length], 0); while (ACE_OS::read (handle, to, length) > 0) @@ -42,7 +42,7 @@ Pipe_Thr_Test::init (int, char **) if (ACE_OS::pipe (this->pipe_handles) == -1) ACE_OS::perror ("pipe"), ACE_OS::exit (1); - if (ACE_Thread_Manager::instance ()->spawn + if (ACE_Thread_Manager::instance ()->spawn (ACE_THR_FUNC (Pipe_Thr_Test::reader), (void *) this, options.t_flags ()) == -1) ACE_OS::perror ("thr_create"), ACE_OS::exit (1); |