Skip to content

Commit

Permalink
[utils] Replace boost::scoped_lock with std::lock_guard
Browse files Browse the repository at this point in the history
  • Loading branch information
gempa-jabe committed Nov 13, 2023
1 parent dc6bf65 commit 7ba8429
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions libs/seiscomp/utils/timer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -349,8 +349,8 @@ void Timer::Loop() {
}
while ( Update() );

boost::mutex::scoped_lock lk(_mutex);

std::lock_guard<std::mutex> lk(_mutex);
if ( _thread ) {
delete _thread;
_thread = nullptr;
Expand All @@ -363,7 +363,7 @@ void Timer::Loop() {

// >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
bool Timer::Update() {
boost::mutex::scoped_lock lk(_mutex);
std::lock_guard<std::mutex> lk(_mutex);

for ( TimerList::iterator it = _timers.begin(); it != _timers.end(); ) {
Timer *t = *it;
Expand Down

0 comments on commit 7ba8429

Please sign in to comment.