Update of /cvsroot/pure-data/pd/src In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv21591
Modified Files: Tag: devel_0_38 m_sched.c Log Message: improved idle callbacks
Index: m_sched.c =================================================================== RCS file: /cvsroot/pure-data/pd/src/m_sched.c,v retrieving revision 1.5.4.6 retrieving revision 1.5.4.7 diff -C2 -d -r1.5.4.6 -r1.5.4.7 *** m_sched.c 24 Nov 2004 18:57:40 -0000 1.5.4.6 --- m_sched.c 25 Nov 2004 23:16:09 -0000 1.5.4.7 *************** *** 667,671 **** do { ! if (cb_fifo_begin->function(cb_fifo_begin->argv) == 0) { t_sched_callback* next = cb_fifo_begin->next; --- 667,677 ---- do { ! int resume; ! if(cb_fifo_begin->argc) ! resume = cb_fifo_begin->function(cb_fifo_begin->argv); ! else ! resume = cb_fifo_begin->function(); ! ! if (resume == 0) { t_sched_callback* next = cb_fifo_begin->next; *************** *** 678,682 **** } while ( sys_getrealtime() > stop && cb_fifo_begin); ! return 0; /* don't sleep */ } --- 684,688 ---- } while ( sys_getrealtime() > stop && cb_fifo_begin); ! return 0; /* don't sleep */ } *************** *** 689,693 **** #error to be implemented
! #endif /* LOCK_FREE */
/* } tb */ --- 695,699 ---- #error to be implemented
! #endif
/* } tb */