Skip to content

Commit

Permalink
Marking coro aware mutexes
Browse files Browse the repository at this point in the history
Summary: While running the static analysis, discowered these coro aware mutexes.

Reviewed By: Gownta

Differential Revision: D51210016

fbshipit-source-id: d421061834b898ec4055cc4422f38aff49e6ba7d
  • Loading branch information
DenisYaroshevskiy authored and facebook-github-bot committed Nov 15, 2023
1 parent ce26dce commit 26a2c02
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions folly/experimental/coro/SharedMutex.h
Original file line number Diff line number Diff line change
Expand Up @@ -192,6 +192,8 @@ class SharedMutexFair : private folly::NonCopyableNonMovable {
void unlock_shared() noexcept;

private:
using folly_coro_aware_mutex = std::true_type;

enum class LockType : std::uint8_t { EXCLUSIVE, SHARED };

class LockAwaiterBase {
Expand Down

0 comments on commit 26a2c02

Please sign in to comment.