Page MenuHomeHEPForge

Use std::lock_guard instead of mutex lock for FSR generators
ClosedPublic

Authored by abudinen on Jul 21 2024, 11:11 PM.

Details

Summary

Use std::lock_guard instead of mutex lock for FSR generators.

This is related with !30 and T168.

Test Plan

Tests give identical results with respect to master. CPU time remains the same.

Diff Detail

Repository
rEVTGEN evtgen
Branch
thread_safety_FSR
Lint
No Lint Coverage
Unit
No Test Coverage
Build Status
Buildable 333
Build 333: arc lint + arc unit

Event Timeline

abudinen created this revision.
abudinen changed the visibility from "All Users" to "Public (No Login Required)".Jul 21 2024, 11:12 PM
abudinen changed the edit policy from "All Users" to "Restricted Project (Project)".
abudinen added a project: Restricted Project.

Thanks, this improves exception safety and makes it less likely to introduce accidental deadlocks with future changes that make early returns etc.

This revision is now accepted and ready to land.Aug 5 2024, 3:23 PM