Skip to content

Commit 2aa30b0

Browse files
committed
Internal lock not necessary in release event.
1 parent 961ab63 commit 2aa30b0

1 file changed

Lines changed: 0 additions & 2 deletions

File tree

include/opdi/logic/omp/mutexOmpLogic.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -193,9 +193,7 @@ void opdi::MutexOmpLogic::onMutexReleased(MutexKind mutexKind, WaitId waitId) {
193193
data->mutexKind = mutexKind;
194194
data->waitId = waitId;
195195

196-
omp_set_lock(&recordings[mutexKind].lock);
197196
data->counter = localCounters[mutexKind][waitId];
198-
omp_unset_lock(&recordings[mutexKind].lock);
199197

200198
#if OPDI_OMP_LOGIC_INSTRUMENT
201199
for (auto& instrument : ompLogicInstruments) {

0 commit comments

Comments
 (0)