[polypaudio-commits] r541 - /trunk/src/polyp/mainloop-signal.c
svnmailer-noreply at 0pointer.de
svnmailer-noreply at 0pointer.de
Mon Feb 20 15:50:46 PST 2006
Author: lennart
Date: Tue Feb 21 00:50:46 2006
New Revision: 541
URL: http://0pointer.de/cgi-bin/viewcvs.cgi?rev=541&root=polypaudio&view=rev
Log:
build defer() function in src/polyp/mainloop-signal.c only on win32
Modified:
trunk/src/polyp/mainloop-signal.c
Modified: trunk/src/polyp/mainloop-signal.c
URL: http://0pointer.de/cgi-bin/viewcvs.cgi/trunk/src/polyp/mainloop-signal.c?rev=541&root=polypaudio&r1=540&r2=541&view=diff
==============================================================================
--- trunk/src/polyp/mainloop-signal.c (original)
+++ trunk/src/polyp/mainloop-signal.c Tue Feb 21 00:50:46 2006
@@ -91,17 +91,16 @@
}
}
+#ifdef OS_IS_WIN32
static void defer(pa_mainloop_api*a, PA_GCC_UNUSED pa_defer_event*e, PA_GCC_UNUSED void *userdata) {
ssize_t r;
int sig;
unsigned int sigs;
-#ifdef OS_IS_WIN32
EnterCriticalSection(&crit);
sigs = waiting_signals;
waiting_signals = 0;
LeaveCriticalSection(&crit);
-#endif
while (sigs) {
if ((r = read(signal_pipe[0], &sig, sizeof(sig))) < 0) {
@@ -119,6 +118,7 @@
sigs--;
}
}
+#endif
static void callback(pa_mainloop_api*a, pa_io_event*e, int fd, pa_io_event_flags_t f, PA_GCC_UNUSED void *userdata) {
ssize_t r;
@@ -179,8 +179,7 @@
while (signals)
pa_signal_free(signals);
-
-
+
#ifndef OS_IS_WIN32
api->io_free(io_event);
io_event = NULL;
More information about the pulseaudio-commits
mailing list