Flutter Engine
The Flutter Engine
Macros | Enumerations | Variables
SkSharedMutex.cpp File Reference
#include "src/base/SkSharedMutex.h"
#include "include/private/base/SkAssert.h"
#include "include/private/base/SkSemaphore.h"
#include <cinttypes>
#include <cstdint>

Go to the source code of this file.

Macros

#define __has_feature(x)   0
 
#define ANNOTATE_RWLOCK_CREATE(lock)
 
#define ANNOTATE_RWLOCK_DESTROY(lock)
 
#define ANNOTATE_RWLOCK_ACQUIRED(lock, is_w)
 
#define ANNOTATE_RWLOCK_RELEASED(lock, is_w)
 

Enumerations

enum  {
  kSharedOffset = (0 * kLogThreadCount) , kWaitingExlusiveOffset = (1 * kLogThreadCount) , kWaitingSharedOffset = (2 * kLogThreadCount) , kSharedMask = ((1 << kLogThreadCount) - 1) << kSharedOffset ,
  kWaitingExclusiveMask = ((1 << kLogThreadCount) - 1) << kWaitingExlusiveOffset , kWaitingSharedMask = ((1 << kLogThreadCount) - 1) << kWaitingSharedOffset
}
 

Variables

static const int kLogThreadCount = 10
 

Macro Definition Documentation

◆ __has_feature

#define __has_feature (   x)    0

Definition at line 17 of file SkSharedMutex.cpp.

◆ ANNOTATE_RWLOCK_ACQUIRED

#define ANNOTATE_RWLOCK_ACQUIRED (   lock,
  is_w 
)

Definition at line 70 of file SkSharedMutex.cpp.

◆ ANNOTATE_RWLOCK_CREATE

#define ANNOTATE_RWLOCK_CREATE (   lock)

Definition at line 68 of file SkSharedMutex.cpp.

◆ ANNOTATE_RWLOCK_DESTROY

#define ANNOTATE_RWLOCK_DESTROY (   lock)

Definition at line 69 of file SkSharedMutex.cpp.

◆ ANNOTATE_RWLOCK_RELEASED

#define ANNOTATE_RWLOCK_RELEASED (   lock,
  is_w 
)

Definition at line 71 of file SkSharedMutex.cpp.

Enumeration Type Documentation

◆ anonymous enum

anonymous enum
Enumerator
kSharedOffset 
kWaitingExlusiveOffset 
kWaitingSharedOffset 
kSharedMask 
kWaitingExclusiveMask 
kWaitingSharedMask 

Definition at line 262 of file SkSharedMutex.cpp.

262 {
266 kSharedMask = ((1 << kLogThreadCount) - 1) << kSharedOffset,
269 };
@ kWaitingSharedOffset
@ kWaitingExlusiveOffset
@ kSharedOffset
@ kWaitingExclusiveMask
@ kWaitingSharedMask
@ kSharedMask
static const int kLogThreadCount

Variable Documentation

◆ kLogThreadCount

const int kLogThreadCount = 10
static

Definition at line 260 of file SkSharedMutex.cpp.