@@ -141,7 +141,6 @@ AsyncInputStream::SeekDone() noexcept
141141 open = true ;
142142
143143 seek_state = SeekState::NONE ;
144- caller_cond.notify_one ();
145144 InvokeOnAvailable ();
146145}
147146
@@ -207,10 +206,8 @@ AsyncInputStream::CommitWriteBuffer(size_t nbytes) noexcept
207206
208207 if (!IsReady ())
209208 SetReady ();
210- else {
211- caller_cond.notify_one ();
209+ else
212210 InvokeOnAvailable ();
213- }
214211}
215212
216213void
@@ -240,10 +237,8 @@ AsyncInputStream::AppendToBuffer(std::span<const std::byte> src) noexcept
240237
241238 if (!IsReady ())
242239 SetReady ();
243- else {
244- caller_cond.notify_one ();
240+ else
245241 InvokeOnAvailable ();
246- }
247242}
248243
249244void
@@ -254,7 +249,6 @@ AsyncInputStream::DeferredResume() noexcept
254249 if (postponed_exception) [[unlikely]] {
255250 /* do not proceed, first the caller must handle the
256251 pending error */
257- caller_cond.notify_one ();
258252 InvokeOnAvailable ();
259253 return ;
260254 }
@@ -263,7 +257,6 @@ AsyncInputStream::DeferredResume() noexcept
263257 Resume ();
264258 } catch (...) {
265259 postponed_exception = std::current_exception ();
266- caller_cond.notify_one ();
267260 InvokeOnAvailable ();
268261 }
269262}
@@ -279,7 +272,6 @@ AsyncInputStream::DeferredSeek() noexcept
279272 /* do not proceed, first the caller must handle the
280273 pending error */
281274 seek_state = SeekState::NONE ;
282- caller_cond.notify_one ();
283275 InvokeOnAvailable ();
284276 return ;
285277 }
@@ -295,7 +287,6 @@ AsyncInputStream::DeferredSeek() noexcept
295287 } catch (...) {
296288 seek_state = SeekState::NONE ;
297289 postponed_exception = std::current_exception ();
298- caller_cond.notify_one ();
299290 InvokeOnAvailable ();
300291 }
301292}
0 commit comments