diff options
author | Miller Puckette <millerpuckette@users.sourceforge.net> | 2005-05-18 04:28:51 +0000 |
---|---|---|
committer | Miller Puckette <millerpuckette@users.sourceforge.net> | 2005-05-18 04:28:51 +0000 |
commit | 388f7a1df37afeed0dd120f8091614a7f6dd91ab (patch) | |
tree | 8a439951a1c190b1fc786abc4f69b23181c54168 /pd/src/m_sched.c | |
parent | bb13717ae41bfa317e7b84625201279a5a2a09d9 (diff) |
Damn, edited this before and lost the update. More data features.
Took about 12 patches.
svn path=/trunk/; revision=3006
Diffstat (limited to 'pd/src/m_sched.c')
-rw-r--r-- | pd/src/m_sched.c | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/pd/src/m_sched.c b/pd/src/m_sched.c index 7a82b3eb..82c4c5d7 100644 --- a/pd/src/m_sched.c +++ b/pd/src/m_sched.c @@ -412,8 +412,18 @@ int m_scheduler( void) waitfortick: 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) idlecount = 0; |