Ignore:
Timestamp:
Jan 28, 2025, 10:11:24 PM (8 months ago)
Author:
Peter A. Buhr <pabuhr@…>
Branches:
master
Children:
49510db
Parents:
2e0bb92 (diff), bada452 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
Message:

Merge branch 'master' of plg.uwaterloo.ca:software/cfa/cfa-cc

File:
1 edited

Legend:

Unmodified
Added
Removed
  • libcfa/src/concurrency/future.hfa

    r2e0bb92 rc699602  
    260260                        if( this.has_first != false) abort("Attempting to reset a multi_future with at least one blocked threads");
    261261                        if( !is_empty(this.blocked) ) abort("Attempting to reset a multi_future with multiple blocked threads");
    262                         reset( (future_t&)*(&this+sizeof(monitor$)) );
     262                        reset( (future_t&)*(future_t*)((uintptr_t)&this + sizeof(monitor$)) );
    263263                }
    264264
     
    266266                bool fulfil( multi_future(T) & this, T result ) {
    267267                        this.result = result;
    268                         return fulfil( (future_t&)*(&this+sizeof(monitor$)) ) != 0p;
     268                        return fulfil( (future_t&)*(future_t*)((uintptr_t)&this + sizeof(monitor$)) ) != 0p;
    269269                }
    270270
     
    275275                        bool w = !sw;
    276276                        if ( sw ) {
    277                                 w = wait( (future_t&)*(&this+sizeof(monitor$)) );
     277                                w = wait( (future_t&)*(future_t*)((uintptr_t)&this + sizeof(monitor$)) );
    278278                                $first_done( this );
    279279                        }
Note: See TracChangeset for help on using the changeset viewer.