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

NameValueComment
LK_Shared0Shared/reader lock of a mutex.
LK_Exclusive1Exclusive/writer lock of a mutex.
LK_Generic2Can be either Shared or Exclusive.