Changeset b6838214 for src/tests/concurrent/examples/boundedBuffer.c
- Timestamp:
- Jan 23, 2018, 5:46:43 PM (8 years ago)
- 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. - File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/tests/concurrent/examples/boundedBuffer.c
rb158d8f rb6838214 8 8 // Created On : Mon Oct 30 12:45:13 2017 9 9 // Last Modified By : Peter A. Buhr 10 // Last Modified On : Tue Dec 5 23:01:51 201711 // Update Count : 1010 // Last Modified On : Tue Jan 2 12:18:18 2018 11 // Update Count : 33 12 12 // 13 13 … … 37 37 signal( full ); 38 38 } 39 39 40 int remove( Buffer & mutex buffer ) with( buffer ) { 40 41 if ( count == 0 ) wait( full ); … … 60 61 &prod.buffer = buffer; 61 62 prod.N = N; 62 63 } 63 64 64 65 thread Consumer { … … 90 91 processor p; 91 92 92 // random_seed( getpid() );93 random_seed( 1003 );93 //srandom( getpid() ); 94 srandom( 1003 ); 94 95 95 96 for ( i = 0; i < Cons; i += 1 ) { // create consumers
Note:
See TracChangeset
for help on using the changeset viewer.