- Timestamp:
- Nov 7, 2025, 8:28:03 AM (4 weeks ago)
- Branches:
- master
- Children:
- 0048327
- Parents:
- f5856ecd
- Location:
- tests/concurrency
- Files:
-
- 2 edited
-
examples/datingService.cfa (modified) (3 diffs)
-
signal/block.cfa (modified) (1 diff)
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 -
tests/concurrency/signal/block.cfa
rf5856ecd rb6de35e 80 80 [a.last_thread, b.last_thread, a.last_signaller, b.last_signaller] = active_thread(); 81 81 82 if( ! is_empty( cond ) ) {82 if( ! empty( cond ) ) { 83 83 84 84 thread$ * next = ( thread$ * ) front( cond );
Note:
See TracChangeset
for help on using the changeset viewer.