Changeset fb57626 for src/tests/concurrent/examples
- Timestamp:
- Dec 18, 2017, 2:27:58 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:
- 46dfe66
- Parents:
- b8b075cd (diff), 06088f9a (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. - Location:
- src/tests/concurrent/examples
- Files:
-
- 1 added
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/tests/concurrent/examples/boundedBuffer.c
rb8b075cd rfb57626 8 8 // Created On : Mon Oct 30 12:45:13 2017 9 9 // Last Modified By : Peter A. Buhr 10 // Last Modified On : T ue Dec 5 23:01:51201711 // Update Count : 1010 // Last Modified On : Thu Dec 14 21:28:52 2017 11 // Update Count : 32 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 {
Note:
See TracChangeset
for help on using the changeset viewer.