Changeset b6de35e for tests/concurrency/examples
- Timestamp:
- Nov 7, 2025, 8:28:03 AM (8 days ago)
- Branches:
- master
- Children:
- 0048327
- Parents:
- f5856ecd
- File:
-
- 1 edited
-
tests/concurrency/examples/datingService.cfa (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
tests/concurrency/examples/datingService.cfa
rf5856ecd rb6de35e 10 10 // Created On : Mon Oct 30 12:56:20 2017 11 11 // Last Modified By : Peter A. Buhr 12 // Last Modified On : Sun Sep 27 15:42:25 202013 // Update Count : 4 012 // Last Modified On : Tue Nov 4 21:58:29 2025 13 // Update Count : 41 14 14 // 15 15 … … 28 28 29 29 unsigned int girl( DatingService & mutex ds, unsigned int PhoneNo, unsigned int ccode ) with( ds ) { 30 if ( is_empty( Boys[ccode] ) ) {// no compatible boy ?30 if ( empty( Boys[ccode] ) ) { // no compatible boy ? 31 31 wait( Girls[ccode] ); // wait for boy 32 32 GirlPhoneNo = PhoneNo; // make phone number available … … 40 40 41 41 unsigned int boy( DatingService & mutex ds, unsigned int PhoneNo, unsigned int ccode ) with( ds ) { 42 if ( is_empty( Girls[ccode] ) ) {// no compatible girl ?42 if ( empty( Girls[ccode] ) ) { // no compatible girl ? 43 43 wait( Boys[ccode] ); // wait for girl 44 44 BoyPhoneNo = PhoneNo; // make phone number available
Note:
See TracChangeset
for help on using the changeset viewer.