- Timestamp:
- Apr 10, 2018, 5:50:27 PM (7 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:
- 2ae8507a
- Parents:
- 8ad6533
- Location:
- src
- Files:
-
- 1 added
- 9 edited
Legend:
- Unmodified
- Added
- Removed
-
src/libcfa/Makefile.am
r8ad6533 r0f56058 11 11 ## Created On : Sun May 31 08:54:01 2015 12 12 ## Last Modified By : Peter A. Buhr 13 ## Last Modified On : Sun Apr 8 23:49:34201814 ## Update Count : 2 2713 ## Last Modified On : Tue Apr 10 15:20:28 2018 14 ## Update Count : 230 15 15 ############################################################################### 16 16 … … 100 100 math \ 101 101 gmp \ 102 time_t.h \ 102 103 bits/align.h \ 103 104 bits/containers.h \ -
src/libcfa/Makefile.in
r8ad6533 r0f56058 264 264 containers/result containers/vector concurrency/coroutine \ 265 265 concurrency/thread concurrency/kernel concurrency/monitor \ 266 ${shell find stdhdr -type f -printf "%p "} math gmp \266 ${shell find stdhdr -type f -printf "%p "} math gmp time_t.h \ 267 267 bits/align.h bits/containers.h bits/defs.h bits/debug.h \ 268 268 bits/locks.h concurrency/invoke.h … … 437 437 math \ 438 438 gmp \ 439 time_t.h \ 439 440 bits/align.h \ 440 441 bits/containers.h \ -
src/libcfa/concurrency/kernel
r8ad6533 r0f56058 10 10 // Created On : Tue Jan 17 12:27:26 2017 11 11 // Last Modified By : Peter A. Buhr 12 // Last Modified On : Fri Mar 23 17:08:20201813 // Update Count : 312 // Last Modified On : Tue Apr 10 14:46:49 2018 13 // Update Count : 10 14 14 // 15 15 … … 19 19 20 20 #include "invoke.h" 21 #include "time "21 #include "time_t.h" 22 22 23 23 extern "C" { -
src/libcfa/concurrency/kernel.c
r8ad6533 r0f56058 10 10 // Created On : Tue Jan 17 12:27:26 2017 11 11 // Last Modified By : Peter A. Buhr 12 // Last Modified On : Fri Mar 30 18:26:11201813 // Update Count : 2 312 // Last Modified On : Mon Apr 9 16:11:46 2018 13 // Update Count : 24 14 14 // 15 15 … … 25 25 26 26 //CFA Includes 27 #include "time" 27 28 #include "kernel_private.h" 28 29 #include "preemption.h" -
src/libcfa/time
r8ad6533 r0f56058 10 10 // Created On : Wed Mar 14 23:18:57 2018 11 11 // Last Modified By : Peter A. Buhr 12 // Last Modified On : Mon Apr 9 13:10:23201813 // Update Count : 6 1612 // Last Modified On : Tue Apr 10 17:25:34 2018 13 // Update Count : 622 14 14 // 15 15 … … 27 27 enum { TIMEGRAN = 1_000_000_000LL }; // nanosecond granularity, except for timeval 28 28 29 #include <time_t.h> // Duration (constructors) / Time (constructors) 29 30 30 31 //######################### Duration ######################### 31 32 32 struct Duration { // private33 int64_t tv; // nanoseconds34 }; // Duration35 36 static inline void ?{}( Duration & dur ) with( dur ) { tv = 0; }37 static inline void ?{}( Duration & dur, Duration d ) with( dur ) { tv = d.tv; }38 39 static inline void ?{}( Duration & dur, zero_t ) with( dur ) { tv = 0; }40 33 static inline Duration ?=?( Duration & dur, zero_t ) { return dur{ 0 }; } 41 34 … … 155 148 //######################### Time ######################### 156 149 157 struct Time { // private158 uint64_t tv; // nanoseconds since UNIX epoch159 }; // Time160 161 static inline void ?{}( Time & t ) with( t ) { tv = 0; } // fast162 void ?{}( Time & time, int year, int month = 0, int day = 0, int hour = 0, int min = 0, int sec = 0, int nsec = 0 ); // slow163 164 static inline void ?{}( Time & t, zero_t ) { t.tv = 0; }165 150 static inline Time ?=?( Time & t, zero_t ) { return t{ 0 }; } 166 151 … … 247 232 } // resetClock 248 233 249 static inline void ?{}( Clock & clk ) { 250 resetClock( clk ); 251 } // Clock 252 253 static inline void ?{}( Clock & clk, Duration adj ) { 254 resetClock( clk, adj ); 255 } // Clock 234 static inline void ?{}( Clock & clk ) { resetClock( clk ); } 235 static inline void ?{}( Clock & clk, Duration adj ) { resetClock( clk, adj ); } 256 236 257 237 static inline Duration getRes() { -
src/tests/concurrent/preempt.c
r8ad6533 r0f56058 1 1 #include <kernel> 2 2 #include <thread> 3 #include <time> 3 4 4 5 #ifndef PREEMPTION_RATE -
src/tests/concurrent/signal/block.c
r8ad6533 r0f56058 12 12 #include <stdlib> 13 13 #include <thread> 14 15 #include <time.h> 14 #include <time> 16 15 17 16 #ifdef LONG_TEST -
src/tests/concurrent/signal/disjoint.c
r8ad6533 r0f56058 3 3 #include <monitor> 4 4 #include <thread> 5 6 #include <time.h> 5 #include <time> 7 6 8 7 #ifdef LONG_TEST -
src/tests/concurrent/signal/wait.c
r8ad6533 r0f56058 10 10 #include <stdlib> 11 11 #include <thread> 12 13 #include <time.h> 12 #include <time> 14 13 15 14 #ifdef LONG_TEST
Note: See TracChangeset
for help on using the changeset viewer.