enum LockKind
Description
This enum distinguishes between different kinds of lock actions. For example, it is an error to write a variable protected by shared version of a mutex.
Declared at: clang/include/clang/Analysis/Analyses/ThreadSafety.h:56
Enumerators
Name | Value | Comment |
---|---|---|
LK_Shared | 0 | Shared/reader lock of a mutex. |
LK_Exclusive | 1 | Exclusive/writer lock of a mutex. |
LK_Generic | 2 | Can be either Shared or Exclusive. |