Ignore:
Timestamp:
Apr 10, 2018, 3:31:07 PM (7 years ago)
Author:
Rob Schluntz <rschlunt@…>
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, with_gc
Children:
33f5b57
Parents:
9d1e3f7 (diff), 8ad6533 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
Message:

Merge branch 'master' of plg.uwaterloo.ca:/u/cforall/software/cfa/cfa-cc

Location:
src/tests/concurrent/signal
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • src/tests/concurrent/signal/barge.c

    r9d1e3f7 rca37445  
    1616
    1717#ifndef PREEMPTION_RATE
    18 #define PREEMPTION_RATE 10_000ul
     18#define PREEMPTION_RATE 10`ms
    1919#endif
    2020
    21 unsigned int default_preemption() {
     21Duration default_preemption() {
    2222        return 0;
    2323}
  • src/tests/concurrent/signal/block.c

    r9d1e3f7 rca37445  
    2222
    2323#ifndef PREEMPTION_RATE
    24 #define PREEMPTION_RATE 10_000ul
     24#define PREEMPTION_RATE 10`ms
    2525#endif
    2626
    27 unsigned int default_preemption() {
     27Duration default_preemption() {
    2828        return PREEMPTION_RATE;
    2929}
     
    5151//------------------------------------------------------------------------------
    5252void wait_op( global_data_t & mutex a, global_data_t & mutex b, unsigned i ) {
    53         wait( cond, (uintptr_t)this_thread );
     53    wait( cond, (uintptr_t)active_thread() );
    5454
    5555        yield( random( 10 ) );
     
    6060        }
    6161
    62         a.last_thread = b.last_thread = this_thread;
     62        a.last_thread = b.last_thread = active_thread();
    6363
    6464        yield( random( 10 ) );
     
    7676        yield( random( 10 ) );
    7777
    78         [a.last_thread, b.last_thread, a.last_signaller, b.last_signaller] = this_thread;
     78        [a.last_thread, b.last_thread, a.last_signaller, b.last_signaller] = active_thread();
    7979
    8080        if( !is_empty( cond ) ) {
     
    106106//------------------------------------------------------------------------------
    107107void barge_op( global_data_t & mutex a ) {
    108         a.last_thread = this_thread;
     108        a.last_thread = active_thread();
    109109}
    110110
  • src/tests/concurrent/signal/disjoint.c

    r9d1e3f7 rca37445  
    1313
    1414#ifndef PREEMPTION_RATE
    15 #define PREEMPTION_RATE 10_000ul
     15#define PREEMPTION_RATE 10`ms
    1616#endif
    1717
    18 unsigned int default_preemption() {
     18Duration default_preemption() {
    1919        return PREEMPTION_RATE;
    2020}
  • src/tests/concurrent/signal/wait.c

    r9d1e3f7 rca37445  
    2020
    2121#ifndef PREEMPTION_RATE
    22 #define PREEMPTION_RATE 10_000ul
     22#define PREEMPTION_RATE 10`ms
    2323#endif
    2424
    25 unsigned int default_preemption() {
     25Duration default_preemption() {
    2626        return PREEMPTION_RATE;
    2727}
Note: See TracChangeset for help on using the changeset viewer.