repositories
/
des2015.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
plots
[des2015.git]
/
mart
/
ex10
/
ex10a.c
diff --git
a/mart/ex10/ex10a.c
b/mart/ex10/ex10a.c
index
4b0a0a4
..
cf1272f
100644
(file)
--- a/
mart/ex10/ex10a.c
+++ b/
mart/ex10/ex10a.c
@@
-15,7
+15,6
@@
RTIME times[SAMPLES];
void taskf(void *arg)
{
void taskf(void *arg)
{
- RT_TASK *curtask;
rt_task_set_periodic(NULL, TM_NOW, 1e5);
unsigned int i;
rt_task_set_periodic(NULL, TM_NOW, 1e5);
unsigned int i;
@@
-24,18
+23,13
@@
void taskf(void *arg)
rt_task_wait_period(NULL);
}
FILE *file;
rt_task_wait_period(NULL);
}
FILE *file;
- file = fopen("ex10a.csv", "w");
+ file = fopen("ex10a
b
.csv", "w");
for(i = 0; i<SAMPLES-1; i++){
fprintf(file, "%u,%llu\n", i, times[i+1]-times[i]);
}
fclose(file);
}
for(i = 0; i<SAMPLES-1; i++){
fprintf(file, "%u,%llu\n", i, times[i+1]-times[i]);
}
fclose(file);
}
-void taskw(void *arg)
-{
- rt_task_join(&task);
-}
-
int main(int argc, char* argv[])
{
rt_print_auto_init(1);
int main(int argc, char* argv[])
{
rt_print_auto_init(1);