Changeset 94ddede


Ignore:
Timestamp:
Mar 30, 2018, 7:23:46 PM (4 years ago)
Author:
Peter A. Buhr <pabuhr@…>
Branches:
aaron-thesis, arm-eh, 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, with_gc
Children:
4c1b48f3
Parents:
273cde6
Message:

use active_thread()

File:
1 edited

Legend:

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

    r273cde6 r94ddede  
    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
Note: See TracChangeset for help on using the changeset viewer.