619
|
1 #include <stdio.h>
|
|
2 #include <stdlib.h>
|
|
3 #include <string.h>
|
|
4 #include "FifoTaskManagerImpl.h"
|
|
5 #include "Scheduler.h"
|
|
6 #include "SchedTask.h"
|
|
7 #include "types.h"
|
|
8 #include "error.h"
|
|
9
|
|
10 FifoTaskManagerImpl::~FifoTaskManagerImpl()
|
|
11 {
|
|
12
|
|
13 }
|
|
14
|
|
15 /**
|
|
16 */
|
|
17 void
|
|
18 FifoTaskManagerImpl::init()
|
|
19 {
|
|
20 }
|
|
21
|
|
22 /**
|
|
23 */
|
|
24 void
|
|
25 FifoTaskManagerImpl::init(MainScheduler *_sched)
|
|
26 {
|
|
27 scheduler = _sched;
|
|
28 }
|
|
29
|
|
30
|
|
31 void
|
|
32 FifoTaskManagerImpl::run()
|
|
33 {
|
|
34 }
|
|
35
|
|
36
|
|
37 void*
|
|
38 FifoTaskManagerImpl::allocate(int size, int alignment)
|
|
39 {
|
|
40 void *buff;
|
|
41 posix_memalign(&buff, alignment, size);
|
|
42 return buff;
|
|
43 }
|
|
44
|
|
45 void*
|
|
46 FifoTaskManagerImpl::allocate(int size)
|
|
47 {
|
|
48 void *buff;
|
|
49 posix_memalign(&buff, DEFAULT_ALIGNMENT, size);
|
|
50 return buff;
|
|
51 }
|
|
52
|
|
53 Scheduler*
|
|
54 FifoTaskManagerImpl::get_scheduler() {
|
|
55 return scheduler;
|
|
56 }
|
|
57
|