Merge pull request #2385 from panzhongxian/v1.x

Remove `try_lock` from null_mutex.
This commit is contained in:
Gabi Melman 2022-05-20 12:09:26 +03:00 committed by GitHub
commit 9e8e52c048
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -13,10 +13,6 @@ struct null_mutex
{ {
void lock() const {} void lock() const {}
void unlock() const {} void unlock() const {}
bool try_lock() const
{
return true;
}
}; };
struct null_atomic_int struct null_atomic_int