Changeset 90152a4 for tests/concurrent/waitfor/simple.c
- Timestamp:
- Aug 27, 2018, 4:40:34 PM (7 years ago)
- Branches:
- ADT, arm-eh, ast-experimental, cleanup-dtors, enum, forall-pointer-decay, jacob/cs343-translation, jenkins-sandbox, master, new-ast, new-ast-unique-expr, pthread-emulation, qualifiedEnum
- Children:
- b7c89aa
- Parents:
- f9feab8 (diff), 305581d (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)links above to see all the changes relative to each parent. - File:
-
- 1 moved
-
tests/concurrent/waitfor/simple.c (moved) (moved from src/tests/concurrent/waitfor/simple.c ) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
tests/concurrent/waitfor/simple.c
rf9feab8 r90152a4 1 #include <fstream >2 #include <kernel >3 #include <monitor >4 #include <stdlib >5 #include <thread >1 #include <fstream.hfa> 2 #include <kernel.hfa> 3 #include <monitor.hfa> 4 #include <stdlib.hfa> 5 #include <thread.hfa> 6 6 7 7 #include <time.h> … … 10 10 11 11 #ifndef PREEMPTION_RATE 12 #define PREEMPTION_RATE 10 _000ul12 #define PREEMPTION_RATE 10`ms 13 13 #endif 14 14 15 unsigned intdefault_preemption() {15 Duration default_preemption() { 16 16 return PREEMPTION_RATE; 17 17 } … … 74 74 int main(int argc, char* argv[]) { 75 75 done = false; 76 random_seed( time( NULL ) );76 srandom( time( NULL ) ); 77 77 printf("%p\n", &globalA); 78 78 sout | "Starting" | endl;
Note:
See TracChangeset
for help on using the changeset viewer.