Definition at line 102 of file dart.cc.
◆ IsInitialized()
static bool dart::DartInitializationState::IsInitialized |
( |
| ) |
|
|
inlinestatic |
Definition at line 124 of file dart.cc.
124{ return state_.load() == kInitialized; }
◆ ResetInitializing()
static void dart::DartInitializationState::ResetInitializing |
( |
| ) |
|
|
inlinestatic |
Definition at line 110 of file dart.cc.
110 {
111 ASSERT(in_use_count_.load() == 0);
112 uint8_t expected = kInitializing;
113 bool result = state_.compare_exchange_strong(expected, kUnInitialized);
115 }
◆ ResetInUse()
static void dart::DartInitializationState::ResetInUse |
( |
| ) |
|
|
inlinestatic |
Definition at line 148 of file dart.cc.
148 {
149 uint8_t
value = state_.load();
151 in_use_count_ -= 1;
152 }
◆ SetCleaningup()
static bool dart::DartInitializationState::SetCleaningup |
( |
| ) |
|
|
inlinestatic |
Definition at line 126 of file dart.cc.
126 {
127 uint8_t expected = kInitialized;
128 return state_.compare_exchange_strong(expected, kCleaningup);
129 }
◆ SetInitialized()
static void dart::DartInitializationState::SetInitialized |
( |
| ) |
|
|
inlinestatic |
Definition at line 117 of file dart.cc.
117 {
118 ASSERT(in_use_count_.load() == 0);
119 uint8_t expected = kInitializing;
120 bool result = state_.compare_exchange_strong(expected, kInitialized);
122 }
◆ SetInitializing()
static bool dart::DartInitializationState::SetInitializing |
( |
| ) |
|
|
inlinestatic |
Definition at line 104 of file dart.cc.
104 {
105 ASSERT(in_use_count_.load() == 0);
106 uint8_t expected = kUnInitialized;
107 return state_.compare_exchange_strong(expected, kInitializing);
108 }
◆ SetInUse()
static bool dart::DartInitializationState::SetInUse |
( |
| ) |
|
|
inlinestatic |
Definition at line 140 of file dart.cc.
140 {
141 if (state_.load() != kInitialized) {
142 return false;
143 }
144 in_use_count_ += 1;
145 return true;
146 }
◆ SetUnInitialized()
static void dart::DartInitializationState::SetUnInitialized |
( |
| ) |
|
|
inlinestatic |
Definition at line 131 of file dart.cc.
131 {
132 while (in_use_count_.load() > 0) {
134 }
135 uint8_t expected = kCleaningup;
136 bool result = state_.compare_exchange_strong(expected, kUnInitialized);
138 }
static void Sleep(int64_t millis)
The documentation for this class was generated from the following file:
- third_party/dart-lang/sdk/runtime/vm/dart.cc