mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-07-06 06:51:26 +12:00
sys_rsxaudio: timer fix
This commit is contained in:
parent
6f4398889e
commit
5b0badc215
1 changed files with 2 additions and 2 deletions
|
@ -2093,7 +2093,7 @@ rsxaudio_periodic_tmr::wait_result rsxaudio_periodic_tmr::wait(const std::functi
|
||||||
{
|
{
|
||||||
wait_status = epoll_wait(epoll_fd, event, obj_wait_cnt, -1);
|
wait_status = epoll_wait(epoll_fd, event, obj_wait_cnt, -1);
|
||||||
}
|
}
|
||||||
while (wait_status == -EINTR);
|
while (wait_status == -1 && errno == EINTR);
|
||||||
|
|
||||||
if (wait_status < 0 || wait_status > obj_wait_cnt)
|
if (wait_status < 0 || wait_status > obj_wait_cnt)
|
||||||
{
|
{
|
||||||
|
@ -2121,7 +2121,7 @@ rsxaudio_periodic_tmr::wait_result rsxaudio_periodic_tmr::wait(const std::functi
|
||||||
{
|
{
|
||||||
wait_status = kevent(kq, nullptr, 0, event, obj_wait_cnt, nullptr);
|
wait_status = kevent(kq, nullptr, 0, event, obj_wait_cnt, nullptr);
|
||||||
}
|
}
|
||||||
while (wait_status == -EINTR);
|
while (wait_status == -1 && errno == EINTR);
|
||||||
|
|
||||||
if (wait_status < 0 || wait_status > obj_wait_cnt)
|
if (wait_status < 0 || wait_status > obj_wait_cnt)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue