@@ -39,8 +39,8 @@ namespace opdi {
3939
4040 struct ReductionTools {
4141 public:
42- static omp_lock_t globalReducerLock ;
43- static std::list<omp_nest_lock_t *> individualReducerLocks ;
42+ static omp_lock_t globalReductionLock ;
43+ static std::list<omp_nest_lock_t *> individualReductionLocks ;
4444
4545 /* item indicates a construct that might have a reduction clause */
4646 /* its value indicates whether there is a reduction clause */
@@ -108,7 +108,7 @@ namespace opdi {
108108 template <typename Type, int identifier>
109109 struct Reducer {
110110 public:
111- static omp_nest_lock_t reduceLock ;
111+ static omp_nest_lock_t reductionLock ;
112112 static bool isInitialized;
113113
114114 Type& value;
@@ -121,35 +121,35 @@ namespace opdi {
121121
122122 if (!initialized) {
123123
124- opdi_set_lock (&ReductionTools::globalReducerLock );
124+ opdi_set_lock (&ReductionTools::globalReductionLock );
125125
126126 #pragma omp atomic read
127127 initialized = Reducer::isInitialized;
128128
129129 if (!initialized) {
130- opdi_init_nest_lock (&Reducer::reduceLock );
131- ReductionTools::individualReducerLocks .push_back (&Reducer::reduceLock );
130+ opdi_init_nest_lock (&Reducer::reductionLock );
131+ ReductionTools::individualReductionLocks .push_back (&Reducer::reductionLock );
132132
133133 #pragma omp atomic write
134134 Reducer::isInitialized = true ;
135135 }
136136
137- opdi_unset_lock (&ReductionTools::globalReducerLock );
137+ opdi_unset_lock (&ReductionTools::globalReductionLock );
138138 }
139139 }
140140
141141 Reducer (Type& value) : value(value) {
142142 /* push barrier prior to first reduction-related operation */
143143 ReductionTools::addBarrierBeforeReductionsIfNeeded ();
144144 this ->checkInitialized ();
145- opdi_set_nest_lock (&reduceLock );
145+ opdi_set_nest_lock (&reductionLock );
146146 }
147147
148148 Reducer& operator =(Type const & rhs) {
149149 value = rhs;
150- opdi_unset_nest_lock (&reduceLock );
151- opdi_unset_nest_lock (&reduceLock );
152- opdi_unset_nest_lock (&reduceLock );
150+ opdi_unset_nest_lock (&reductionLock );
151+ opdi_unset_nest_lock (&reductionLock );
152+ opdi_unset_nest_lock (&reductionLock );
153153 return *this ;
154154 }
155155 };
0 commit comments