Ignore:
Timestamp:
Jan 23, 2018, 5:46:43 PM (8 years ago)
Author:
Alan Kennedy <afakenne@…>
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:
258e6ad5
Parents:
b158d8f (diff), 15d248e (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:

add context switch for ARM

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/tests/concurrent/examples/boundedBuffer.c

    rb158d8f rb6838214  
    88// Created On       : Mon Oct 30 12:45:13 2017
    99// Last Modified By : Peter A. Buhr
    10 // Last Modified On : Tue Dec  5 23:01:51 2017
    11 // Update Count     : 10
     10// Last Modified On : Tue Jan  2 12:18:18 2018
     11// Update Count     : 33
    1212//
    1313
     
    3737        signal( full );
    3838}
     39
    3940int remove( Buffer & mutex buffer ) with( buffer ) {
    4041        if ( count == 0 ) wait( full );
     
    6061        &prod.buffer = buffer;
    6162        prod.N = N;
    62                 }
     63}
    6364
    6465thread Consumer {
     
    9091        processor p;
    9192
    92         //random_seed( getpid() );
    93         random_seed( 1003 );
     93        //srandom( getpid() );
     94        srandom( 1003 );
    9495
    9596        for ( i = 0; i < Cons; i += 1 ) {                       // create consumers
Note: See TracChangeset for help on using the changeset viewer.