Changeset 309d814


Ignore:
Timestamp:
Aug 14, 2020, 11:39:56 AM (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:
4c925cd
Parents:
63fe427c
Message:

Added lock around system call in eager mode, since system call has it's own, worst, lock

File:
1 edited

Legend:

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

    r63fe427c r309d814  
    362362                        unsigned to_submit = __collect_submitions( ring );
    363363
    364                         // Release the lock now so syscalls can overlap
    365                         unlock(ring.submit_q.lock);
    366 
    367364                        // Actually submit
    368365                        int ret = __io_uring_enter( ring, to_submit, false );
     366
     367                        unlock(ring.submit_q.lock);
    369368                        if( ret < 0 ) return;
    370369
Note: See TracChangeset for help on using the changeset viewer.