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

change name is_empty to empty for monitor conditions

File:
1 edited

Legend:

Unmodified
Added
Removed
  • libcfa/src/concurrency/monitor.cfa

    rf5856ecd rb6de35e  
    1010// Created On       : Thd Feb 23 12:27:26 2017
    1111// Last Modified By : Peter A. Buhr
    12 // Last Modified On : Fri Apr 25 07:20:22 2025
    13 // Update Count     : 80
     12// Last Modified On : Tue Nov  4 22:03:41 2025
     13// Update Count     : 82
    1414//
    1515
     
    494494
    495495bool signal( condition & this ) libcfa_public {
    496         if ( is_empty( this ) ) { return false; }
     496        if ( empty( this ) ) { return false; }
    497497
    498498        //Check that everything is as expected
     
    581581// Access the user_info of the thread waiting at the front of the queue
    582582uintptr_t front( condition & this ) libcfa_public {
    583         verifyf( ! is_empty(this),
     583        verifyf( ! empty( this ),
    584584                "Attempt to access user data on an empty condition.\n"
    585585                "Possible cause is not checking if the condition is empty before reading stored data."
Note: See TracChangeset for help on using the changeset viewer.