Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • benchmark/schedint/pthreads.c

    rdc33b5b rbf71cfd  
    2727        )
    2828
    29         printf("%g\n", result);
     29        printf("%llu\n", result);
    3030        go = 0;
    3131        pthread_mutex_unlock(&m);
     
    3333}
    3434
    35 void* thread_main(__attribute__((unused)) void * arg ) {
     35void* thread_main(void * a) {
    3636        while(go == 0) { sched_yield(); }
    3737        while(go == 1) { call(); }
     
    3939}
    4040
    41 int main(__attribute__((unused)) int argc, __attribute__((unused)) char* argv[]) {
     41int main(int margc, char* margv[]) {
     42        argc = margc;
     43        argv = margv;
    4244        pthread_t thread;
    4345        if (pthread_create(&thread, NULL, thread_main, NULL) < 0) {
Note: See TracChangeset for help on using the changeset viewer.