Ignore:
Timestamp:
Nov 19, 2021, 3:03:54 PM (3 years ago)
Author:
Thierry Delisle <tdelisle@…>
Branches:
ADT, ast-experimental, enum, forall-pointer-decay, master, pthread-emulation, qualifiedEnum
Children:
cd4c605
Parents:
a633f6f
Message:

Refactoring idle sleep to try and help the change from idle on read to idle on io_uring_enter.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • libcfa/src/concurrency/kernel/startup.cfa

    ra633f6f r1757f98  
    527527        this.local_data = 0p;
    528528
    529         this.idle = eventfd(0, 0);
    530         if (idle < 0) {
     529        this.idle_fd = eventfd(0, 0);
     530        if (idle_fd < 0) {
    531531                abort("KERNEL ERROR: PROCESSOR EVENTFD - %s\n", strerror(errno));
    532532        }
     
    542542// Not a ctor, it just preps the destruction but should not destroy members
    543543static void deinit(processor & this) {
    544         close(this.idle);
     544        close(this.idle_fd);
    545545}
    546546
Note: See TracChangeset for help on using the changeset viewer.