/[pdpsoft]/trunk/grid-mw-security/ees/src/app/aos_threading_test.c
ViewVC logotype

Diff of /trunk/grid-mw-security/ees/src/app/aos_threading_test.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1352 by aramv, Tue Jan 5 14:43:37 2010 UTC revision 1353 by aramv, Sat Jan 9 00:19:12 2010 UTC
# Line 1  Line 1 
1  #define _MULTI_THREADED  #define _MULTI_THREADED
2  #define NUM_THREADS 20  #define NUM_THREADS 40
3    
4  #include <stdio.h>  #include <stdio.h>
5  #include <stdlib.h>  #include <stdlib.h>
# Line 15  int main (int argc, char* argv[]){ Line 15  int main (int argc, char* argv[]){
15    int rc;    int rc;
16    void* status;    void* status;
17    
18      /*sleep(10);*/
19    
20    if(argc > 1){    if(argc > 1){
21      config_file = argv[1];      config_file = argv[1];
22    } else {    } else {
# Line 34  int main (int argc, char* argv[]){ Line 36  int main (int argc, char* argv[]){
36        rc = pthread_join(threads[t], &status);        rc = pthread_join(threads[t], &status);
37      }      }
38    }    }
39      /*sleep(10);*/
40    EEF_Term();    EEF_Term();
41      printf("terminated!\n");
42    
43      /*sleep(10);*/
44    
45    pthread_exit(NULL);    pthread_exit(NULL);
46    return 0;    return 0;
47  }  }

Legend:
Removed from v.1352  
changed lines
  Added in v.1353

grid.support@nikhef.nl
ViewVC Help
Powered by ViewVC 1.1.28