diff options
author | Abdullah Sowayan <sowayan@users.noreply.github.com> | 2007-07-17 04:06:30 +0000 |
---|---|---|
committer | Abdullah Sowayan <sowayan@users.noreply.github.com> | 2007-07-17 04:06:30 +0000 |
commit | cb39ec159c448ee5ffd5f16c4c65c9478b211756 (patch) | |
tree | 0015d01b574c6f19150b8c3a9f40c4d040044ee6 /ACE/performance-tests | |
parent | 9d8f7c5c3d16c46d49cde4da24bb052ca6064e87 (diff) | |
download | ATCD-cb39ec159c448ee5ffd5f16c4c65c9478b211756.tar.gz |
Tue Jul 17 04:03:24 UTC 2007 Abdullah Sowayan <abdullah.sowayan@lmco.com>
Diffstat (limited to 'ACE/performance-tests')
-rw-r--r-- | ACE/performance-tests/Synch-Benchmarks/context.c | 4 | ||||
-rw-r--r-- | ACE/performance-tests/TTCP/ACE-C++/wrapper-new-ttcp.cpp | 2 | ||||
-rw-r--r-- | ACE/performance-tests/TTCP/C/new-ttcp.cpp | 2 | ||||
-rw-r--r-- | ACE/performance-tests/UDP/udp_test.cpp | 6 |
4 files changed, 7 insertions, 7 deletions
diff --git a/ACE/performance-tests/Synch-Benchmarks/context.c b/ACE/performance-tests/Synch-Benchmarks/context.c index a5a6e577b12..a2ce1c580e9 100644 --- a/ACE/performance-tests/Synch-Benchmarks/context.c +++ b/ACE/performance-tests/Synch-Benchmarks/context.c @@ -47,9 +47,9 @@ main (int argc, char *argv[]) ncorr = atoi (argv[5]); - if (thr_create (NULL, 0, work, 0, t0arg, &tid0) != 0) + if (thr_create (0, 0, work, 0, t0arg, &tid0) != 0) perror ("couldn't create thread 0"); - if (thr_create (NULL, 0, work, (void *) 1, t1arg, &tid1) != 0) + if (thr_create (0, 0, work, (void *) 1, t1arg, &tid1) != 0) perror ("couldn't create thread 1"); orig_ncorr = thr_getconcurrency (); diff --git a/ACE/performance-tests/TTCP/ACE-C++/wrapper-new-ttcp.cpp b/ACE/performance-tests/TTCP/ACE-C++/wrapper-new-ttcp.cpp index 975048a4a7e..c195836c890 100644 --- a/ACE/performance-tests/TTCP/ACE-C++/wrapper-new-ttcp.cpp +++ b/ACE/performance-tests/TTCP/ACE-C++/wrapper-new-ttcp.cpp @@ -676,7 +676,7 @@ prep_timer () fprintf(stdout, "beginning sys time = %d sec and %d usec\n", ru0.ru_stime.tv_sec, ru0.ru_stime.tv_usec); /* Init REAL Timer */ - if (setitimer (ITIMER_REAL, &itime0, NULL)) + if (setitimer (ITIMER_REAL, &itime0, 0)) { perror ("Setting 'itimer' REAL failed"); return; diff --git a/ACE/performance-tests/TTCP/C/new-ttcp.cpp b/ACE/performance-tests/TTCP/C/new-ttcp.cpp index 3cf8e1045eb..d355f0b6d56 100644 --- a/ACE/performance-tests/TTCP/C/new-ttcp.cpp +++ b/ACE/performance-tests/TTCP/C/new-ttcp.cpp @@ -700,7 +700,7 @@ prep_timer () getrusage (RUSAGE_SELF, &ru0); /* Init REAL Timer */ - if (setitimer (ITIMER_REAL, &itime0, NULL)) + if (setitimer (ITIMER_REAL, &itime0, 0)) { perror ("Setting 'itimer' REAL failed"); return; diff --git a/ACE/performance-tests/UDP/udp_test.cpp b/ACE/performance-tests/UDP/udp_test.cpp index 5c613fcef61..1e59e06b30a 100644 --- a/ACE/performance-tests/UDP/udp_test.cpp +++ b/ACE/performance-tests/UDP/udp_test.cpp @@ -346,20 +346,20 @@ Client::run (void) distfp = ACE_OS::fopen(distfile, ACE_TEXT("w")); - if (distfp == NULL) + if (distfp == 0) { ACE_DEBUG ((LM_DEBUG, "Unable to open dist file!\n\n")); logfile = 0; } - if (logfile && (sampfp = ACE_OS::fopen (sampfile, ACE_TEXT("w"))) == NULL) + if (logfile && (sampfp = ACE_OS::fopen (sampfile, ACE_TEXT("w"))) == 0) { ACE_OS::fclose (distfp); ACE_DEBUG ((LM_DEBUG, "Unable to open sample file!\n\n")); logfile = 0; } - if (logfile && (sumfp = ACE_OS::fopen (sumfile, ACE_TEXT("w"))) == NULL) + if (logfile && (sumfp = ACE_OS::fopen (sumfile, ACE_TEXT("w"))) == 0) { ACE_OS::fclose (distfp); ACE_OS::fclose (sampfp); |