Skip to content
This repository has been archived by the owner on Aug 2, 2022. It is now read-only.

Commit

Permalink
Making with_read_lock const
Browse files Browse the repository at this point in the history
  • Loading branch information
brianjohnson5972 committed Aug 4, 2017
1 parent f1a150f commit d48ebab
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/chainbase/chainbase.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -878,7 +878,7 @@ namespace chainbase {
}

template< typename Lambda >
auto with_read_lock( Lambda&& callback, uint64_t wait_micro = 1000000 ) -> decltype( (*(Lambda*)nullptr)() )
auto with_read_lock( Lambda&& callback, uint64_t wait_micro = 1000000 ) const -> decltype( (*(Lambda*)nullptr)() )
{
read_lock lock( _rw_manager->current_lock(), bip::defer_lock_type() );
#ifdef CHAINBASE_CHECK_LOCKING
Expand Down

0 comments on commit d48ebab

Please sign in to comment.