Skip to content

Commit

Permalink
missing try_lock
Browse files Browse the repository at this point in the history
ref.: chriskohlhoff@13a6d87

Signed-off-by: Matheus Catarino <[email protected]>
  • Loading branch information
kassane committed Nov 26, 2024
1 parent 62481a2 commit ea825ed
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions asio/include/asio/detail/null_mutex.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,12 @@ class null_mutex
{
}

// Try to lock the mutex.
bool try_lock()
{
return true;
}

// Lock the mutex.
void lock()
{
Expand Down

0 comments on commit ea825ed

Please sign in to comment.