mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-07 13:30:03 -05:00
daemon: get rid of win32 message timer
We don't need a timer to check for Windows messages anymore now that our fancy new poll() implementation does that for us.
This commit is contained in:
parent
f70ec2776a
commit
6f4e08140f
2 changed files with 8 additions and 36 deletions
|
|
@ -46,6 +46,7 @@ typedef unsigned long nfds_t;
|
|||
# include <io.h>
|
||||
# include <stdio.h>
|
||||
# include <conio.h>
|
||||
# include <signal.h>
|
||||
# if 0
|
||||
# include "msvc-nothrow.h"
|
||||
# endif
|
||||
|
|
@ -568,8 +569,13 @@ restart:
|
|||
BOOL bRet;
|
||||
while ((bRet = PeekMessage (&msg, NULL, 0, 0, PM_REMOVE)) != 0)
|
||||
{
|
||||
TranslateMessage (&msg);
|
||||
DispatchMessage (&msg);
|
||||
if (msg.message == WM_QUIT)
|
||||
raise(SIGTERM);
|
||||
else
|
||||
{
|
||||
TranslateMessage (&msg);
|
||||
DispatchMessage (&msg);
|
||||
}
|
||||
}
|
||||
}
|
||||
else
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue