Ignore:
Timestamp:
Apr 9, 2018, 2:21:27 PM (6 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:
0f56058, ca37445
Parents:
35f730f
Message:

remove cfatime.h, move itimerval constructor to "time", update concurrent examples to use Duration

Location:
src/libcfa/concurrency
Files:
2 edited

Legend:

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

    r35f730f r8ad6533  
    1010// Created On       : Fri Jun 2 11:31:25 2017
    1111// Last Modified By : Peter A. Buhr
    12 // Last Modified On : Wed Apr  4 16:47:29 2018
    13 // Update Count     : 49
     12// Last Modified On : Mon Apr  9 13:36:18 2018
     13// Update Count     : 61
    1414//
    1515
     
    2525#include "kernel_private.h"
    2626#include "preemption.h"
    27 
    28 
    29 static inline void ?{}( itimerval & this, Duration alarm ) with( this ) {
    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
    33 }
    3427
    3528//=============================================================================================
  • src/libcfa/concurrency/preemption.c

    r35f730f r8ad6533  
    1010// Created On       : Mon Jun 5 14:20:42 2017
    1111// Last Modified By : Peter A. Buhr
    12 // Last Modified On : Fri Mar 30 17:27:43 2018
    13 // Update Count     : 31
     12// Last Modified On : Mon Apr  9 13:52:39 2018
     13// Update Count     : 36
    1414//
    1515
     
    2323}
    2424
    25 #include "bits/cfatime.h"
    2625#include "bits/signal.h"
    2726
     
    126125                register_self( alarm );
    127126        }
    128         // Zero duraction but alarm is set
     127        // Zero duration but alarm is set
    129128        else if ( duration == 0 && alarm->set ) {
    130129                unregister_self( alarm );
Note: See TracChangeset for help on using the changeset viewer.