/[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 1753 by aramv, Tue May 11 09:38:20 2010 UTC revision 1754 by aramv, Thu Jun 10 16:35:55 2010 UTC
# Line 78  int main (int argc, char* argv[]){ Line 78  int main (int argc, char* argv[]){
78    } else {    } else {
79    
80      add_dummy_aos_obligation();      add_dummy_aos_obligation();
81      EEF_run();      /*EEF_run();*/
82      aos_dump_argslist();      /*aos_dump_argslist();*/
83      /*aos_start_threading();*/      aos_start_threading();
84      /**//* start threading */      /* start threading */
85      /*for(t=0; t < NUM_THREADS; t++){*/      for(t=0; t < NUM_THREADS; t++){
86      /*printf("Creating thread %li!\n", t);*/        printf("Creating thread %li!\n", t);
87      /*rc = pthread_create(&threads[t], NULL, (void*)(void*) EEF_Run, (void*)(t));*/        rc = pthread_create(&threads[t], NULL, (void * (*)(void *)) EEF_run, (void*)(t));
88      /*rc = pthread_join(threads[t], &status);*/        rc = pthread_join(threads[t], &status);
89      /*}*/      }
90    }    }
91    /*sleep(10);*/    /*sleep(10);*/
92    EEF_term();    /*AOS_Clean();*/
93      if(EEF_term() == EES_SUCCESS){
94        EEF_log(LOG_NOTICE, "EEF terminated!\n");
95      } else {
96        EEF_log(LOG_ERR, "Error while terminating EEF!\n");
97      }
98    cgul_closelog();    cgul_closelog();
   EEF_log(LOG_NOTICE, "EEF terminated!\n");  
99    
100    /*sleep(10);*/    /*sleep(10);*/
101    
102    /*pthread_exit(NULL);*/    pthread_exit(NULL);
103    return 0;    return 0;
104  }  }
105    

Legend:
Removed from v.1753  
changed lines
  Added in v.1754

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