Update of /cvsroot/pure-data/pd/src In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv22186/src
Modified Files: Tag: devel_0_38 m_sched.c Log Message: open sys_lock while send_dac may be sleeping
Index: m_sched.c =================================================================== RCS file: /cvsroot/pure-data/pd/src/m_sched.c,v retrieving revision 1.5 retrieving revision 1.5.4.1 diff -C2 -d -r1.5 -r1.5.4.1 *** m_sched.c 6 Sep 2004 20:20:35 -0000 1.5 --- m_sched.c 8 Nov 2004 20:27:10 -0000 1.5.4.1 *************** *** 411,416 **** if (sched_usedacs) { timeforward = sys_send_dacs(); ! /* if dacs remain "idle" for 1 sec, they're hung up. */ if (timeforward != 0) --- 411,426 ---- if (sched_usedacs) { + #ifdef THREAD_LOCKING + /* T.Grill - send_dacs may sleep -> + unlock thread lock make that time available + - could messaging do any harm while sys_send_dacs is running? + */ + sys_unlock(); + #endif timeforward = sys_send_dacs(); ! #ifdef THREAD_LOCKING ! /* T.Grill - done */ ! sys_unlock(); ! #endif /* if dacs remain "idle" for 1 sec, they're hung up. */ if (timeforward != 0)