Skip to content

Commit 1ee624e

Browse files
authored
Merge pull request #974 from JeffersonLab/sdobbs_ped_update_may2025
change locks in event function for pedestal_online
2 parents 7380c5a + 911fb38 commit 1ee624e

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/plugins/monitoring/pedestal_online/JEventProcessor_pedestal_online.cc

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ void JEventProcessor_pedestal_online::Process(const std::shared_ptr<const JEvent
144144
event->Get(f125PIs);
145145

146146
// Although we are only filling objects local to this plugin, the directory changes: Global ROOT lock
147-
lockService->RootFillLock(this);
147+
lockService->RootWriteLock();
148148

149149
if (peddir!=NULL) peddir->cd();
150150

@@ -335,8 +335,9 @@ void JEventProcessor_pedestal_online::Process(const std::shared_ptr<const JEvent
335335
}
336336

337337
maindir->cd();
338+
338339
// Unlock ROOT
339-
lockService->RootFillUnLock(this);
340+
lockService->RootUnLock();
340341
}
341342

342343

0 commit comments

Comments
 (0)