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/future.hfa

    rf5856ecd rb6de35e  
    1010// Created On       : Wed Jan 06 17:33:18 2021
    1111// Last Modified By : Peter A. Buhr
    12 // Last Modified On : Wed Apr 23 22:41:10 2025
    13 // Update Count     : 22
     12// Last Modified On : Tue Nov  4 22:04:42 2025
     13// Update Count     : 23
    1414//
    1515
     
    298298                void reset(multi_future(T) & mutex this) {
    299299                        if ( this.has_first != false ) abort("Attempting to reset a multi_future with at least one blocked threads");
    300                         if ( !is_empty(this.blocked) ) abort("Attempting to reset a multi_future with multiple blocked threads");
     300                        if ( ! empty( this.blocked ) ) abort("Attempting to reset a multi_future with multiple blocked threads");
    301301                        reset( (future_t&)*(future_t*)((uintptr_t)&this + sizeof(monitor$)) );
    302302                }
Note: See TracChangeset for help on using the changeset viewer.