Ignore:
Timestamp:
Mar 21, 2022, 1:28:59 PM (3 years ago)
Author:
Thierry Delisle <tdelisle@…>
Branches:
ADT, ast-experimental, enum, master, pthread-emulation, qualifiedEnum
Children:
dbe2533
Parents:
98d1b90
Message:

Added spin lock to io drain.
last step before completion fairness

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

Legend:

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

    r98d1b90 r4ecc35a  
    214214
    215215                // completion queue
     216                cq.lock      = 0;
    216217                cq.head      = (volatile __u32 *)(((intptr_t)cq.ring_ptr) + params.cq_off.head);
    217218                cq.tail      = (volatile __u32 *)(((intptr_t)cq.ring_ptr) + params.cq_off.tail);
  • libcfa/src/concurrency/io/types.hfa

    r98d1b90 r4ecc35a  
    7878
    7979        struct __cmp_ring_t {
     80                volatile bool lock;
     81
    8082                // Head and tail of the ring
    8183                volatile __u32 * head;
Note: See TracChangeset for help on using the changeset viewer.