Ignore:
Timestamp:
Aug 14, 2020, 5:32:32 PM (4 years ago)
Author:
Thierry Delisle <tdelisle@…>
Branches:
ADT, arm-eh, ast-experimental, enum, forall-pointer-decay, jacob/cs343-translation, master, new-ast, new-ast-unique-expr, pthread-emulation, qualifiedEnum
Children:
d2b5d2d
Parents:
a5bc72e
Message:

Added support for partial submit strategy

Location:
libcfa/src/concurrency/io
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • libcfa/src/concurrency/io/setup.cfa

    ra5bc72e r1095ccd  
    388388                                sq.ready[i] = -1ul32;
    389389                        }
     390                        sq.prev_ready = 0;
    390391                }
    391392                else {
    392393                        sq.ready_cnt = 0;
    393394                        sq.ready = 0p;
     395                        sq.prev_ready = 0;
    394396                }
    395397
  • libcfa/src/concurrency/io/types.hfa

    ra5bc72e r1095ccd  
    2323      #include "bits/locks.hfa"
    2424
    25         #define LEADER_LOCK
     25        // #define LEADER_LOCK
    2626        struct __leaderlock_t {
    2727                struct $thread * volatile value;        // ($thread) next_leader | (bool:1) is_locked
     
    5555                volatile __u32 * ready;
    5656                __u32 ready_cnt;
     57                __u32 prev_ready;
    5758
    5859                #if defined(LEADER_LOCK)
Note: See TracChangeset for help on using the changeset viewer.