Ignore:
Timestamp:
Apr 4, 2018, 9:50:23 PM (7 years ago)
Author:
Peter A. Buhr <pabuhr@…>
Branches:
ADT, aaron-thesis, arm-eh, ast-experimental, cleanup-dtors, deferred_resn, demangler, enum, forall-pointer-decay, jacob/cs343-translation, jenkins-sandbox, master, new-ast, new-ast-unique-expr, new-env, no_list, persistent-indexer, pthread-emulation, qualifiedEnum, with_gc
Children:
643c6b9
Parents:
bb37870
Message:

formatting, remove convert of timeval/timespec to Duration, adjust preemption alarm

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/libcfa/concurrency/alarm.c

    rbb37870 rbc03be3  
    1010// Created On       : Fri Jun 2 11:31:25 2017
    1111// Last Modified By : Peter A. Buhr
    12 // Last Modified On : Tue Mar 27 14:12:11 2018
    13 // Update Count     : 41
     12// Last Modified On : Wed Apr  4 16:47:29 2018
     13// Update Count     : 49
    1414//
    1515
     
    2828
    2929static inline void ?{}( itimerval & this, Duration alarm ) with( this ) {
    30         it_value   { alarm };                                                           // seconds, microseconds
    31         it_interval{ 0 };
     30        // itimerval.it_value is a duration but uses time data-structure timeval.
     31        it_value{ alarm`s, alarm`us };                                          // seconds, microseconds
     32        it_interval{ 0 };                                                                       // 0 seconds, 0 microseconds
    3233}
    3334
Note: See TracChangeset for help on using the changeset viewer.