Changeset b1a4300 for src/libcfa/concurrency/alarm.c
- Timestamp:
- May 17, 2018, 3:25:12 PM (6 years ago)
- 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:
- a83ffa4
- Parents:
- e9a7e90b
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/libcfa/concurrency/alarm.c
re9a7e90b rb1a4300 37 37 38 38 void __kernel_set_timer( Duration alarm ) { 39 verifyf(alarm >= 1`us || alarm == 0, "Setting timer to < 1us (%luns)", alarm.tv); 39 40 setitimer( ITIMER_REAL, &(itimerval){ alarm }, NULL ); 40 41 } … … 68 69 } 69 70 70 __cfaabi_dbg_debug_do( bool validate( alarm_list_t * this ) { 71 #if !defined(NDEBUG) && (defined(__CFA_DEBUG__) || defined(__CFA_VERIFY__)) 72 bool validate( alarm_list_t * this ) { 71 73 alarm_node_t ** it = &this->head; 72 74 while( (*it) ) { … … 75 77 76 78 return it == this->tail; 77 }) 79 } 80 #endif 78 81 79 82 static inline void insert_at( alarm_list_t * this, alarm_node_t * n, __alarm_it_t p ) {
Note: See TracChangeset
for help on using the changeset viewer.