Project import generated by Copybara.
GitOrigin-RevId: 852dfb05d450167899c0dd5ef7c45622a12e865b
This commit is contained in:
committed by
Hadon Nash
parent
d144e564d8
commit
de4fbc10e6
@@ -238,7 +238,7 @@ void Scheduler::WaitUntilGraphInputStreamUnthrottled(
|
||||
}
|
||||
secondary_mutex->Unlock();
|
||||
ApplicationThreadAwait(
|
||||
[this, seq_num]() EXCLUSIVE_LOCKS_REQUIRED(state_mutex_) {
|
||||
[this, seq_num]() ABSL_EXCLUSIVE_LOCKS_REQUIRED(state_mutex_) {
|
||||
return (unthrottle_seq_num_ != seq_num) || state_ == STATE_TERMINATED;
|
||||
});
|
||||
secondary_mutex->Lock();
|
||||
@@ -255,7 +255,7 @@ void Scheduler::EmittedObservedOutput() {
|
||||
::mediapipe::Status Scheduler::WaitForObservedOutput() {
|
||||
bool observed = false;
|
||||
ApplicationThreadAwait(
|
||||
[this, &observed]() EXCLUSIVE_LOCKS_REQUIRED(state_mutex_) {
|
||||
[this, &observed]() ABSL_EXCLUSIVE_LOCKS_REQUIRED(state_mutex_) {
|
||||
observed = observed_output_signal_;
|
||||
observed_output_signal_ = false;
|
||||
waiting_for_observed_output_ = !observed && state_ != STATE_TERMINATED;
|
||||
@@ -281,7 +281,7 @@ void Scheduler::EmittedObservedOutput() {
|
||||
|
||||
::mediapipe::Status Scheduler::WaitUntilDone() {
|
||||
RET_CHECK_NE(state_, STATE_NOT_STARTED);
|
||||
ApplicationThreadAwait([this]() EXCLUSIVE_LOCKS_REQUIRED(state_mutex_) {
|
||||
ApplicationThreadAwait([this]() ABSL_EXCLUSIVE_LOCKS_REQUIRED(state_mutex_) {
|
||||
return state_ == STATE_TERMINATED;
|
||||
});
|
||||
return ::mediapipe::OkStatus();
|
||||
|
||||
Reference in New Issue
Block a user