Changeset b6de35e for tests


Ignore:
Timestamp:
Nov 7, 2025, 8:28:03 AM (4 weeks ago)
Author:
Peter A. Buhr <pabuhr@…>
Branches:
master
Children:
0048327
Parents:
f5856ecd
Message:

change name is_empty to empty for monitor conditions

Location:
tests/concurrency
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • tests/concurrency/examples/datingService.cfa

    rf5856ecd rb6de35e  
    1010// Created On       : Mon Oct 30 12:56:20 2017
    1111// Last Modified By : Peter A. Buhr
    12 // Last Modified On : Sun Sep 27 15:42:25 2020
    13 // Update Count     : 40
     12// Last Modified On : Tue Nov  4 21:58:29 2025
     13// Update Count     : 41
    1414//
    1515
     
    2828
    2929unsigned 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 ?
    3131                wait( Girls[ccode] );                                                   // wait for boy
    3232                GirlPhoneNo = PhoneNo;                                                  // make phone number available
     
    4040
    4141unsigned 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 ?
    4343                wait( Boys[ccode] );                                                    // wait for girl
    4444                BoyPhoneNo = PhoneNo;                                                   // make phone number available
  • tests/concurrency/signal/block.cfa

    rf5856ecd rb6de35e  
    8080        [a.last_thread, b.last_thread, a.last_signaller, b.last_signaller] = active_thread();
    8181
    82         if( !is_empty( cond ) ) {
     82        if( ! empty( cond ) ) {
    8383
    8484                thread$ * next = ( thread$ * ) front( cond );
Note: See TracChangeset for help on using the changeset viewer.