[PD-cvs] pd/src m_sched.c,1.5.4.11,1.5.4.12
Tim Blechmann
timblech at users.sourceforge.net
Thu Dec 2 17:40:26 CET 2004
Update of /cvsroot/pure-data/pd/src
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv29709
Modified Files:
Tag: devel_0_38
m_sched.c
Log Message:
oops
Index: m_sched.c
===================================================================
RCS file: /cvsroot/pure-data/pd/src/m_sched.c,v
retrieving revision 1.5.4.11
retrieving revision 1.5.4.12
diff -C2 -d -r1.5.4.11 -r1.5.4.12
*** m_sched.c 2 Dec 2004 15:19:15 -0000 1.5.4.11
--- m_sched.c 2 Dec 2004 16:40:24 -0000 1.5.4.12
***************
*** 28,33 ****
#include "m_fifo.h"
static t_int run_idle_callbacks(void);
! static t_sched_callback * idle_callback = NULL;
/* tb: }*/
--- 28,35 ----
#include "m_fifo.h"
+
static t_int run_idle_callbacks(void);
! t_fifo * callback_fifo = NULL;
!
/* tb: }*/
***************
*** 620,624 ****
#include "m_fifo.h"
-
/* linked list of callbacks
* callback will be freed after returning 0 */
--- 622,625 ----
***************
*** 630,634 ****
} t_sched_callback;
! t_fifo * callback_fifo = NULL;
void set_callback(t_int (*callback) (t_int* argv), t_int* argv, t_int argc)
--- 631,635 ----
} t_sched_callback;
! static t_sched_callback * idle_callback = NULL;
void set_callback(t_int (*callback) (t_int* argv), t_int* argv, t_int argc)
***************
*** 665,672 ****
}
while ( (sys_getrealtime() > stop) && (idle_callback != NULL));
}
}
- #endif
-
/* } tb */
--- 666,674 ----
}
while ( (sys_getrealtime() > stop) && (idle_callback != NULL));
+ return 0;
}
+ else
+ return 1; /* sleep */
}
/* } tb */
More information about the Pd-cvs
mailing list