diff modules/bluespec/Pygar/core/AudioCoreSystem.cpp @ 65:cf8bb3038cbd pygar svn.66

[svn r66] sim passes
author punk
date Tue, 11 May 2010 09:05:22 -0400
parents bf08daea854e
children 44cc00df1168
line wrap: on
line diff
     1.1 --- a/modules/bluespec/Pygar/core/AudioCoreSystem.cpp	Mon May 10 23:16:14 2010 -0400
     1.2 +++ b/modules/bluespec/Pygar/core/AudioCoreSystem.cpp	Tue May 11 09:05:22 2010 -0400
     1.3 @@ -35,7 +35,7 @@
     1.4    printf("InitSend Side\n");
     1.5    pthread_mutex_init(&lock, NULL);
     1.6    pthread_cond_init(&cond, NULL);
     1.7 -  sem_init(&throttle, 0, 64);
     1.8 +  sem_init(&throttle, 0, 256);
     1.9  
    1.10    // enable stats 
    1.11    //STATS_DEVICE_SERVER_CLASS::GetInstance()->SetupStats();
    1.12 @@ -103,6 +103,7 @@
    1.13  
    1.14    int count = 0;
    1.15  
    1.16 +  sleep(1);
    1.17    printf("main:samples about to start sending %d\n", count);  
    1.18  
    1.19    //rlm: here we read both files. later refactor into a function.
    1.20 @@ -120,7 +121,8 @@
    1.21  	 coreFin = true;
    1.22         }
    1.23      */
    1.24 -
    1.25 +     sem_wait(&throttle);
    1.26 + 
    1.27       if(count%1000 == 0)
    1.28       printf("main: %d\n", count);
    1.29       count++;