Ignore:
Timestamp:
Mar 22, 2022, 3:28:29 PM (3 years ago)
Author:
Thierry Delisle <tdelisle@…>
Branches:
ADT, ast-experimental, enum, master, pthread-emulation, qualifiedEnum
Children:
ff7b2de
Parents:
8f01ad71
Message:

I/O now updates the timestamps when draining.
Timestamps are not used yet.

File:
1 edited

Legend:

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

    r8f01ad71 r78a580d  
    233233        /* paranoid */ verify( sizeof(storage_mainIdleEventFd) == sizeof(eventfd_t) );
    234234
     235        __cfa_io_start( mainProcessor );
    235236        register_tls( mainProcessor );
    236         __cfa_io_start( mainProcessor );
    237237
    238238        // Start by initializing the main thread
     
    314314        mainProcessor->local_data = 0p;
    315315
     316        unregister_tls( mainProcessor );
    316317        __cfa_io_stop( mainProcessor );
    317         unregister_tls( mainProcessor );
    318318
    319319        // Destroy the main processor and its context in reverse order of construction
     
    364364        proc->local_data = &__cfaabi_tls;
    365365
     366        __cfa_io_start( proc );
    366367        register_tls( proc );
    367 
    368         __cfa_io_start( proc );
    369368
    370369        // used for idle sleep when io_uring is present
     
    401400        // Main routine of the core returned, the core is now fully terminated
    402401        __cfadbg_print_safe(runtime_core, "Kernel : core %p main ended (%p)\n", proc, &proc->runner);
    403 
    404         __cfa_io_stop( proc );
    405402
    406403        #if !defined(__CFA_NO_STATISTICS__)
     
    417414
    418415        unregister_tls( proc );
     416        __cfa_io_stop( proc );
    419417
    420418        return 0p;
Note: See TracChangeset for help on using the changeset viewer.