Changeset 8ad6533 for src/libcfa
- Timestamp:
- Apr 9, 2018, 2:21:27 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:
- 0f56058, ca37445
- Parents:
- 35f730f
- Location:
- src/libcfa
- Files:
-
- 1 deleted
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
src/libcfa/Makefile.am
r35f730f r8ad6533 11 11 ## Created On : Sun May 31 08:54:01 2015 12 12 ## Last Modified By : Peter A. Buhr 13 ## Last Modified On : Tue Mar 27 14:27:05201814 ## Update Count : 22 513 ## Last Modified On : Sun Apr 8 23:49:34 2018 14 ## Update Count : 227 15 15 ############################################################################### 16 16 … … 101 101 gmp \ 102 102 bits/align.h \ 103 bits/cfatime.h \104 103 bits/containers.h \ 105 104 bits/defs.h \ -
src/libcfa/Makefile.in
r35f730f r8ad6533 265 265 concurrency/thread concurrency/kernel concurrency/monitor \ 266 266 ${shell find stdhdr -type f -printf "%p "} math gmp \ 267 bits/align.h bits/c fatime.h bits/containers.h bits/defs.h \268 bits/ debug.h bits/locks.h concurrency/invoke.h267 bits/align.h bits/containers.h bits/defs.h bits/debug.h \ 268 bits/locks.h concurrency/invoke.h 269 269 HEADERS = $(nobase_cfa_include_HEADERS) 270 270 am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP) … … 438 438 gmp \ 439 439 bits/align.h \ 440 bits/cfatime.h \441 440 bits/containers.h \ 442 441 bits/defs.h \ -
src/libcfa/concurrency/alarm.c
r35f730f r8ad6533 10 10 // Created On : Fri Jun 2 11:31:25 2017 11 11 // Last Modified By : Peter A. Buhr 12 // Last Modified On : Wed Apr 4 16:47:29201813 // Update Count : 4912 // Last Modified On : Mon Apr 9 13:36:18 2018 13 // Update Count : 61 14 14 // 15 15 … … 25 25 #include "kernel_private.h" 26 26 #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, microseconds32 it_interval{ 0 }; // 0 seconds, 0 microseconds33 }34 27 35 28 //============================================================================================= -
src/libcfa/concurrency/preemption.c
r35f730f r8ad6533 10 10 // Created On : Mon Jun 5 14:20:42 2017 11 11 // Last Modified By : Peter A. Buhr 12 // Last Modified On : Fri Mar 30 17:27:43201813 // Update Count : 3 112 // Last Modified On : Mon Apr 9 13:52:39 2018 13 // Update Count : 36 14 14 // 15 15 … … 23 23 } 24 24 25 #include "bits/cfatime.h"26 25 #include "bits/signal.h" 27 26 … … 126 125 register_self( alarm ); 127 126 } 128 // Zero dura ction but alarm is set127 // Zero duration but alarm is set 129 128 else if ( duration == 0 && alarm->set ) { 130 129 unregister_self( alarm ); -
src/libcfa/time
r35f730f r8ad6533 10 10 // Created On : Wed Mar 14 23:18:57 2018 11 11 // Last Modified By : Peter A. Buhr 12 // Last Modified On : Fri Apr 6 11:15:49201813 // Update Count : 61 012 // Last Modified On : Mon Apr 9 13:10:23 2018 13 // Update Count : 616 14 14 // 15 15 … … 128 128 129 129 130 //######################### C itimerval ######################### 131 132 static inline void ?{}( itimerval & itv, Duration alarm ) with( itv ) { 133 // itimerval contains durations but but uses time data-structure timeval. 134 it_value{ alarm`s, (alarm % 1`s)`us }; // seconds, microseconds 135 it_interval{ 0 }; // 0 seconds, 0 microseconds 136 } // itimerval 137 138 static inline void ?{}( itimerval & itv, Duration alarm, Duration interval ) with( itv ) { 139 // itimerval contains durations but but uses time data-structure timeval. 140 it_value{ alarm`s, (alarm % 1`s)`us }; // seconds, microseconds 141 it_interval{ interval`s, interval`us }; // seconds, microseconds 142 } // itimerval 143 144 130 145 //######################### C time ######################### 131 146 … … 142 157 struct Time { // private 143 158 uint64_t tv; // nanoseconds since UNIX epoch 144 }; 159 }; // Time 145 160 146 161 static inline void ?{}( Time & t ) with( t ) { tv = 0; } // fast
Note: See TracChangeset
for help on using the changeset viewer.