Ignore:
Timestamp:
Dec 1, 2024, 9:04:12 PM (2 weeks ago)
Author:
JiadaL <j82liang@…>
Branches:
master
Children:
eae8b37
Parents:
3e2e9b2 (diff), 1c0a3a4 (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

    r3e2e9b2 r509ec82  
    99// Author           : Thierry Delisle & Peiran Hong & Colby Parsons
    1010// Created On       : Wed Jan 06 17:33:18 2021
    11 // Last Modified By :
    12 // Last Modified On :
    13 // Update Count     :
     11// Last Modified By : Peter A. Buhr
     12// Last Modified On : Fri Nov 29 16:07:34 2024
     13// Update Count     : 30
    1414//
    1515
     
    2323//----------------------------------------------------------------------------
    2424// future
    25 // I don't use future_t here since I need to use a lock for this future
    26 //  since it supports multiple consumers
    27 //  future_t is lockfree and uses atomics which aren't needed given we use locks here
     25// I don't use future_t here as I need to use a lock for this future since it supports multiple consumers.
     26// future_t is lockfree and uses atomics which aren't needed given we use locks here
    2827forall( T ) {
    29     // enum { FUTURE_EMPTY = 0, FUTURE_FULFILLED = 1 }; // Enums seem to be broken so feel free to add this back afterwards
    30 
    31     // temporary enum replacement
    32     const int FUTURE_EMPTY = 0;
    33     const int FUTURE_FULFILLED = 1;
     28    enum { FUTURE_EMPTY = 0, FUTURE_FULFILLED = 1 };
    3429
    3530        struct future {
Note: See TracChangeset for help on using the changeset viewer.