Cygwin: dsp: Fix a bug that app hangs if it killed during write().
If app is killed during blocking write(), it sometimes hangs. This patch fixes the issue. Signed-off-by: Takashi Yano <takashi.yano@nifty.ne.jp>
This commit is contained in:
parent
c2d2bf34e6
commit
8484773f47
1 changed files with 2 additions and 1 deletions
|
@ -590,7 +590,8 @@ fhandler_dev_dsp::Audio_out::waitforallsent ()
|
|||
while (Qisr2app_->query () != fh->fragstotal_)
|
||||
{
|
||||
debug_printf ("%d blocks in Qisr2app", Qisr2app_->query ());
|
||||
Sleep (100);
|
||||
cygwait (1);
|
||||
sendcurrent ();
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue