This repository was archived by the owner on Feb 25, 2025. It is now read-only.
File tree 7 files changed +12
-11
lines changed 7 files changed +12
-11
lines changed Original file line number Diff line number Diff line change @@ -87,7 +87,8 @@ inline RefCountedThreadSafeBase::RefCountedThreadSafeBase()
87
87
: ref_count_(1u )
88
88
#ifndef NDEBUG
89
89
,
90
- adoption_required_ (true )
90
+ adoption_required_ (true ),
91
+ destruction_started_(false )
91
92
#endif
92
93
{
93
94
}
Original file line number Diff line number Diff line change @@ -30,7 +30,7 @@ class WeakPtrFlag : public fml::RefCountedThreadSafe<WeakPtrFlag> {
30
30
void Invalidate ();
31
31
32
32
private:
33
- bool is_valid_ = false ;
33
+ bool is_valid_;
34
34
35
35
FML_DISALLOW_COPY_AND_ASSIGN (WeakPtrFlag);
36
36
};
Original file line number Diff line number Diff line change @@ -155,7 +155,7 @@ class MessageLoopTaskQueues {
155
155
mutable std::mutex queue_mutex_;
156
156
std::map<TaskQueueId, std::unique_ptr<TaskQueueEntry>> queue_entries_;
157
157
158
- size_t task_queue_id_counter_ = 0 ;
158
+ size_t task_queue_id_counter_;
159
159
160
160
std::atomic_int order_;
161
161
Original file line number Diff line number Diff line change @@ -29,7 +29,7 @@ class MessageLoopAndroid : public MessageLoopImpl {
29
29
private:
30
30
fml::UniqueObject<ALooper*, UniqueLooperTraits> looper_;
31
31
fml::UniqueFD timer_fd_;
32
- bool running_ = false ;
32
+ bool running_;
33
33
34
34
MessageLoopAndroid ();
35
35
Original file line number Diff line number Diff line change @@ -59,7 +59,7 @@ class SharedThreadMerger
59
59
fml::TaskQueueId subsumed_;
60
60
fml::MessageLoopTaskQueues* task_queues_;
61
61
std::mutex mutex_;
62
- bool enabled_ = false ;
62
+ bool enabled_;
63
63
64
64
// / The |MergeWithLease| or |ExtendLeaseTo| method will record the caller
65
65
// / into this lease_term_by_caller_ map, |UnMergeNowIfLastOne|
Original file line number Diff line number Diff line change @@ -170,24 +170,24 @@ class PlatformSemaphore {
170
170
171
171
namespace fml {
172
172
173
- Semaphore::Semaphore (uint32_t count) : impl_ (new PlatformSemaphore(count)) {}
173
+ Semaphore::Semaphore (uint32_t count) : _impl (new PlatformSemaphore(count)) {}
174
174
175
175
Semaphore::~Semaphore () = default ;
176
176
177
177
bool Semaphore::IsValid () const {
178
- return impl_ ->IsValid ();
178
+ return _impl ->IsValid ();
179
179
}
180
180
181
181
bool Semaphore::Wait () {
182
- return impl_ ->Wait ();
182
+ return _impl ->Wait ();
183
183
}
184
184
185
185
bool Semaphore::TryWait () {
186
- return impl_ ->TryWait ();
186
+ return _impl ->TryWait ();
187
187
}
188
188
189
189
void Semaphore::Signal () {
190
- return impl_ ->Signal ();
190
+ return _impl ->Signal ();
191
191
}
192
192
193
193
} // namespace fml
Original file line number Diff line number Diff line change @@ -78,7 +78,7 @@ class Semaphore {
78
78
void Signal ();
79
79
80
80
private:
81
- std::unique_ptr<PlatformSemaphore> impl_ ;
81
+ std::unique_ptr<PlatformSemaphore> _impl ;
82
82
83
83
FML_DISALLOW_COPY_AND_ASSIGN (Semaphore);
84
84
};
You can’t perform that action at this time.
0 commit comments