Skip to content

Commit 54d80f6

Browse files
committed
[gardening] Add optional typename to fix flutter build.
Follow-up to https://dart.googlesource.com/sdk/+/74846b96c394e78c37060d8be7c350fa8c1b6a6d TEST=flutter ci Change-Id: I31cdfe067d65f7cc39912c58ab62e0f9a8157e32 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/436640 Reviewed-by: Derek Xu <[email protected]> Commit-Queue: Alexander Aprelev <[email protected]>
1 parent 2c7fcb1 commit 54d80f6

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

runtime/vm/lockers.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ void SafepointLocker<M>::AcquireLock() {
7272
}
7373

7474
template <typename M>
75-
M::WaitResult SafepointLocker<M>::Wait(int64_t millis) {
75+
typename M::WaitResult SafepointLocker<M>::Wait(int64_t millis) {
7676
Thread* thread = Thread::Current();
7777
if (thread != nullptr) {
7878
typename M::WaitResult result;

runtime/vm/lockers.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -279,7 +279,7 @@ class SafepointLocker : public ValueObject {
279279
explicit SafepointLocker(M* monitor) : monitor_(monitor) { AcquireLock(); }
280280
virtual ~SafepointLocker() { ReleaseLock(); }
281281

282-
M::WaitResult Wait(int64_t millis = Monitor::kNoTimeout);
282+
typename M::WaitResult Wait(int64_t millis = Monitor::kNoTimeout);
283283

284284
void NotifyAll() { monitor_->NotifyAll(); }
285285

0 commit comments

Comments
 (0)