Ignore:
Timestamp:
Oct 26, 2017, 4:22:17 PM (6 years ago)
Author:
Thierry Delisle <tdelisle@…>
Branches:
ADT, aaron-thesis, arm-eh, ast-experimental, cleanup-dtors, deferred_resn, demangler, enum, forall-pointer-decay, jacob/cs343-translation, jenkins-sandbox, master, new-ast, new-ast-unique-expr, new-env, no_list, persistent-indexer, pthread-emulation, qualifiedEnum, resolv-new, with_gc
Children:
6a5be52
Parents:
f54a0ab
Message:

added behcnmarks for signal and waitfor

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/benchmark/mutex/pthreads.c

    rf54a0ab r9f0b975  
    44#include "bench.h"
    55
    6 volatile unsigned long int counter = 0;
    7 
    86pthread_mutex_t mutex;
    97
    108void __attribute__((noinline)) call() {
    119         pthread_mutex_lock  (&mutex);
    12          counter++;
    1310         pthread_mutex_unlock(&mutex);
    1411}
Note: See TracChangeset for help on using the changeset viewer.