Ignore:
Timestamp:
Oct 11, 2022, 4:47:19 PM (2 years ago)
Author:
Thierry Delisle <tdelisle@…>
Branches:
ADT, ast-experimental, master
Children:
926d358
Parents:
a55472cc
Message:

Fixed what appears to be a bug in retract.
Text coverage for this looks lacking.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • libcfa/src/concurrency/kernel/fwd.hfa

    ra55472cc r3fcb5921  
    276276                        // intented to be use by wait, wait_any, waitfor, etc. rather than used directly
    277277                        bool retract( future_t & this, oneshot & wait_ctx ) {
    278                                 struct oneshot * expected = this.ptr;
     278                                struct oneshot * expected = &wait_ctx;
    279279
    280280                                // attempt to remove the context so it doesn't get consumed.
Note: See TracChangeset for help on using the changeset viewer.