[PD-cvs] pd/src s_audio_jack.c,1.5.4.4,1.5.4.5

Tim Blechmann timblech at users.sourceforge.net
Sat Apr 9 08:52:02 CEST 2005


Update of /cvsroot/pure-data/pd/src
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv13435

Modified Files:
      Tag: devel_0_38
	s_audio_jack.c 
Log Message:
don't block callback too long

Index: s_audio_jack.c
===================================================================
RCS file: /cvsroot/pure-data/pd/src/s_audio_jack.c,v
retrieving revision 1.5.4.4
retrieving revision 1.5.4.5
diff -C2 -d -r1.5.4.4 -r1.5.4.5
*** s_audio_jack.c	8 Apr 2005 13:04:16 -0000	1.5.4.4
--- s_audio_jack.c	9 Apr 2005 06:52:00 -0000	1.5.4.5
***************
*** 12,16 ****
  #include <jack/jack.h>
  #include <regex.h>
! 
  
  #define MAX_CLIENTS 100
--- 12,16 ----
  #include <jack/jack.h>
  #include <regex.h>
! #include <errno.h>
  
  #define MAX_CLIENTS 100
***************
*** 87,91 ****
  	int i,j;
  	
! 	sys_lock();
  	for (i = 0; i != dspticks_per_jacktick; ++i)
  	{
--- 87,96 ----
  	int i,j;
  	
! 	if (sys_timedlock(sys_schedadvance) == EBUSY)
! 		/* this is bad ... we're blocking a realtime thread */
! 	{
! 		return 1;
! 	}
! 	
  	for (i = 0; i != dspticks_per_jacktick; ++i)
  	{





More information about the Pd-cvs mailing list