[PD-cvs] pd/src d_soundfile.c,1.1.1.2.2.16,1.1.1.2.2.17

Tim Blechmann timblech at users.sourceforge.net
Mon Jul 12 16:15:09 CEST 2004


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

Modified Files:
      Tag: devel_0_37
	d_soundfile.c 
Log Message:
main thread waits for helper thread

Index: d_soundfile.c
===================================================================
RCS file: /cvsroot/pure-data/pd/src/d_soundfile.c,v
retrieving revision 1.1.1.2.2.16
retrieving revision 1.1.1.2.2.17
diff -C2 -d -r1.1.1.2.2.16 -r1.1.1.2.2.17
*** d_soundfile.c	29 Jun 2004 20:48:18 -0000	1.1.1.2.2.16
--- d_soundfile.c	12 Jul 2004 14:15:07 -0000	1.1.1.2.2.17
***************
*** 1004,1007 ****
--- 1004,1009 ----
  void soundfiler_thread(void)
  {    
+     /* thread has been started, the main thread can continue */
+     pthread_cond_signal(&(soundfiler_queue->cond));
  
      while (1)
***************
*** 1180,1183 ****
--- 1182,1189 ----
  	post("global soundfiler thread launched, priority: %d", 
  	     sf_param.sched_priority);
+ 
+     /* we wait until the helper thread is ready */
+     pthread_cond_wait(&soundfiler_queue->cond, &soundfiler_queue->mutex);
+ 
  }
  





More information about the Pd-cvs mailing list