Ignore:
File:
1 edited

Legend:

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

    rc457dc41 r4aeaee5  
    4646
    4747struct alarm_node_t {
    48         Duration initial;       // time when alarm goes off
    49         Duration period;        // if > 0 => period of alarm
     48        Time alarm;                             // time when alarm goes off
     49        Duration period;                        // if > 0 => period of alarm
    5050
    51         inline dlink(alarm_node_t);
     51        DLISTED_MGD_IMPL_IN(alarm_node_t)
    5252
    5353        union {
    54                 $thread * thrd;                 // thrd who created event
    55                 processor * proc;                       // proc who created event
    56                 Alarm_Callback callback;        // callback to handle event
     54                $thread * thrd;                                 // thrd who created event
     55                processor * proc;                               // proc who created event
     56                Alarm_Callback callback;                // callback to handle event
    5757        };
    5858
    59         Time timeval;           // actual time at which the alarm goes off
    60         enum alarm_type type;   // true if this is not a user defined alarm
    61         bool set                :1;     // whether or not the alarm has be registered
     59        bool set                :1;             // whether or not the alarm has be registered
     60        enum alarm_type type;           // true if this is not a user defined alarm
    6261};
    63 P9_EMBEDDED( alarm_node_t, dlink(alarm_node_t) )
     62DLISTED_MGD_IMPL_OUT(alarm_node_t)
    6463
    65 void ?{}( alarm_node_t & this, $thread * thrd, Duration alarm, Duration period );
    66 void ?{}( alarm_node_t & this, processor * proc, Duration alarm, Duration period );
    67 void ?{}( alarm_node_t & this, Alarm_Callback callback, Duration alarm, Duration period );
     64void ?{}( alarm_node_t & this, $thread * thrd, Time alarm, Duration period );
     65void ?{}( alarm_node_t & this, processor   * proc, Time alarm, Duration period );
     66void ?{}( alarm_node_t & this, Alarm_Callback callback, Time alarm, Duration period );
    6867void ^?{}( alarm_node_t & this );
    6968
    70 typedef dlist(alarm_node_t) alarm_list_t;
     69typedef dlist(alarm_node_t, alarm_node_t) alarm_list_t;
    7170
    7271void insert( alarm_list_t * this, alarm_node_t * n );
Note: See TracChangeset for help on using the changeset viewer.