diff options
author | levine <levine@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 1998-10-20 02:34:57 +0000 |
---|---|---|
committer | levine <levine@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 1998-10-20 02:34:57 +0000 |
commit | 5c1001ce4f585836e1f83c28d1df89aee42fb743 (patch) | |
tree | 5967e9ca7d44ed1d2823be9746817ebb8e025f5d /performance-tests/Synch-Benchmarks | |
parent | 2ae14b2b85ad813a269e8a5529aa76cf984fa8a5 (diff) | |
download | ATCD-5c1001ce4f585836e1f83c28d1df89aee42fb743.tar.gz |
changed include protection from #if !defined to ifndef, and added #pragma once, if possible
Diffstat (limited to 'performance-tests/Synch-Benchmarks')
6 files changed, 44 insertions, 34 deletions
diff --git a/performance-tests/Synch-Benchmarks/Base_Test/Baseline_Test.h b/performance-tests/Synch-Benchmarks/Base_Test/Baseline_Test.h index 7375602c22e..8a4d57a6cbc 100644 --- a/performance-tests/Synch-Benchmarks/Base_Test/Baseline_Test.h +++ b/performance-tests/Synch-Benchmarks/Base_Test/Baseline_Test.h @@ -1,7 +1,7 @@ // -*- C++ -*- // $Id$ -#if !defined (ACE_BASELINE_TEST_H) +#ifndef ACE_BASELINE_TEST_H #define ACE_BASELINE_TEST_H #include "Benchmark_Base.h" diff --git a/performance-tests/Synch-Benchmarks/Benchmark_Base.h b/performance-tests/Synch-Benchmarks/Benchmark_Base.h index c5ee7e9da17..ed3e46099a6 100644 --- a/performance-tests/Synch-Benchmarks/Benchmark_Base.h +++ b/performance-tests/Synch-Benchmarks/Benchmark_Base.h @@ -3,10 +3,15 @@ /* Defines the base class used to dynamically link in the benchmark tests */ -#if !defined (ACE_BENCHMARK_BASE_H) +#ifndef ACE_BENCHMARK_BASE_H # define ACE_BENCHMARK_BASE_H # include "ace/Service_Config.h" + +#if !defined (ACE_LACKS_PRAGMA_ONCE) +# pragma once +#endif /* ACE_LACKS_PRAGMA_ONCE */ + # include "ace/Service_Repository.h" # include "ace/Synch.h" # include "ace/Service_Types.h" diff --git a/performance-tests/Synch-Benchmarks/Perf_Test/Adaptive_Lock_Performance_Test_Base.h b/performance-tests/Synch-Benchmarks/Perf_Test/Adaptive_Lock_Performance_Test_Base.h index 1845c06d023..eae59d82db6 100644 --- a/performance-tests/Synch-Benchmarks/Perf_Test/Adaptive_Lock_Performance_Test_Base.h +++ b/performance-tests/Synch-Benchmarks/Perf_Test/Adaptive_Lock_Performance_Test_Base.h @@ -1,6 +1,6 @@ // $Id$ -#if !defined (ACE_ADAPTIVE_LOCK_PERFORMANCE_TEST_BASE_H) +#ifndef ACE_ADAPTIVE_LOCK_PERFORMANCE_TEST_BASE_H #define ACE_ADAPTIVE_LOCK_PERFORMANCE_TEST_BASE_H #include "Benchmark_Performance.h" diff --git a/performance-tests/Synch-Benchmarks/Perf_Test/Benchmark_Performance.h b/performance-tests/Synch-Benchmarks/Perf_Test/Benchmark_Performance.h index b1b7eaa7c94..44951835f40 100644 --- a/performance-tests/Synch-Benchmarks/Perf_Test/Benchmark_Performance.h +++ b/performance-tests/Synch-Benchmarks/Perf_Test/Benchmark_Performance.h @@ -3,7 +3,7 @@ /* Defines the class used to dynamically link in the benchmark tests */ -#if !defined (ACE_BENCHMARK_PERFORMANCE_H) +#ifndef ACE_BENCHMARK_PERFORMANCE_H #define ACE_BENCHMARK_PERFORMANCE_H #include "../Benchmark_Base.h" diff --git a/performance-tests/Synch-Benchmarks/Perf_Test/Performance_Test.h b/performance-tests/Synch-Benchmarks/Perf_Test/Performance_Test.h index 29fe7affc73..18eab50afed 100644 --- a/performance-tests/Synch-Benchmarks/Perf_Test/Performance_Test.h +++ b/performance-tests/Synch-Benchmarks/Perf_Test/Performance_Test.h @@ -1,7 +1,7 @@ // -*- C++ -*- // $Id$ -#if !defined (ACE_PERFORMANCE_TEST_H) +#ifndef ACE_PERFORMANCE_TEST_H #define ACE_PERFORMANCE_TEST_H #include "../Benchmark_Base.h" diff --git a/performance-tests/Synch-Benchmarks/Perf_Test/Performance_Test_Options.h b/performance-tests/Synch-Benchmarks/Perf_Test/Performance_Test_Options.h index a8ea66c4ff3..80a867df9de 100644 --- a/performance-tests/Synch-Benchmarks/Perf_Test/Performance_Test_Options.h +++ b/performance-tests/Synch-Benchmarks/Perf_Test/Performance_Test_Options.h @@ -3,10 +3,15 @@ // Option manager for performance tests. -#if !defined (_PERFORMANCE_TEST_OPTIONS_H) +#ifndef _PERFORMANCE_TEST_OPTIONS_H #define _PERFORMANCE_TEST_OPTIONS_H #include "ace/OS.h" + +#if !defined (ACE_LACKS_PRAGMA_ONCE) +# pragma once +#endif /* ACE_LACKS_PRAGMA_ONCE */ + #include "ace/Profile_Timer.h" #include "ace/Log_Msg.h" #include "ace/Thread_Manager.h" @@ -86,36 +91,36 @@ public: ACE_Atomic_Op<ACE_Thread_Mutex, size_t> msg_count; // Keep track of number of messages atomically. int *thr_work_count; // Count activity per-thread. - int thr_wc_size; // Max number of threads. + int thr_wc_size; // Max number of threads. private: - ACE_Profile_Timer _itimer; // Keep track of time. - char *_service_entry; // Name of the shared object file and shared object. - char *_mapped_file; // Name of the mapped file. - char *_pipe_addr; // Name of the STREAM pipe. - size_t _sleep_time; // Time to sleep. - size_t _n_lwps; // Number of LWPs. - size_t _thr_count; // Number of threads to spawn. - long _t_flags; // Flags to thr_create(). - size_t _high_water_mark; // ACE_Queue high water mark. - size_t _low_water_mark; // ACE_Queue low water mark. - size_t _msg_size; // Size of a message. - size_t _initial_queue_length; // Initial number of items in the queue. - size_t _logical_connections; // Number of logical connections. - size_t _physical_connections; // Number of physical connections. - size_t _iterations; // Number of iterations to run the test program. - int _generate; // Generate the data. - int _udp; // Use UDP format. - int _debugging; // Extra debugging info. - int _verbosity; // Extra verbose messages. - int _ack; // Do an acknowledgement. - int _checksum; // Is checksumming enabled?. - int _xdr; // Is xdr conversion enabled?. - int _free_memory; // Are we freeing up memory?. - int _zero_copy; // Implement a zero-copy driver?. - int _print_summary; // Print a summary of the results only. - int _consecutive_ports; // Number of consecutive messages from same port. - int _eager_exit; // Exit eagerly, without cleaning up. + ACE_Profile_Timer _itimer; // Keep track of time. + char *_service_entry; // Name of the shared object file and shared object. + char *_mapped_file; // Name of the mapped file. + char *_pipe_addr; // Name of the STREAM pipe. + size_t _sleep_time; // Time to sleep. + size_t _n_lwps; // Number of LWPs. + size_t _thr_count; // Number of threads to spawn. + long _t_flags; // Flags to thr_create(). + size_t _high_water_mark; // ACE_Queue high water mark. + size_t _low_water_mark; // ACE_Queue low water mark. + size_t _msg_size; // Size of a message. + size_t _initial_queue_length; // Initial number of items in the queue. + size_t _logical_connections; // Number of logical connections. + size_t _physical_connections; // Number of physical connections. + size_t _iterations; // Number of iterations to run the test program. + int _generate; // Generate the data. + int _udp; // Use UDP format. + int _debugging; // Extra debugging info. + int _verbosity; // Extra verbose messages. + int _ack; // Do an acknowledgement. + int _checksum; // Is checksumming enabled?. + int _xdr; // Is xdr conversion enabled?. + int _free_memory; // Are we freeing up memory?. + int _zero_copy; // Implement a zero-copy driver?. + int _print_summary; // Print a summary of the results only. + int _consecutive_ports; // Number of consecutive messages from same port. + int _eager_exit; // Exit eagerly, without cleaning up. }; // Make this available to any code that wants to see it! |