Mercurial > hg > Game > Cerium
comparison TaskManager/kernel/ppe/CpuThreads.h @ 1229:424c1f16e704 draft
add args useRefDma
author | Daichi TOMA <e085740@ie.u-ryukyu.ac.jp> |
---|---|
date | Wed, 24 Aug 2011 07:45:27 +0900 |
parents | 898fdcf53c31 |
children | 6b4a0846afcb |
comparison
equal
deleted
inserted
replaced
1228:98094b0f1b01 | 1229:424c1f16e704 |
---|---|
11 int cpuid; | 11 int cpuid; |
12 // should be syncrhonized | 12 // should be syncrhonized |
13 MainScheduler *scheduler; | 13 MainScheduler *scheduler; |
14 TaskManagerImpl *manager; | 14 TaskManagerImpl *manager; |
15 SemPtr wait; | 15 SemPtr wait; |
16 int useRefDma; | |
16 } cpu_thread_arg_t; | 17 } cpu_thread_arg_t; |
17 | 18 |
18 class CpuThreads : public Threads { | 19 class CpuThreads : public Threads { |
19 public: | 20 public: |
20 /* constructor */ | 21 /* constructor */ |
21 CpuThreads(int num = 1, int start_id = 0); | 22 CpuThreads(int num = 1, int useRefDma = 0, int start_id = 0); |
22 ~CpuThreads(); | 23 ~CpuThreads(); |
23 static void *cpu_thread_run(void *args); | 24 static void *cpu_thread_run(void *args); |
24 | 25 |
25 /* functions */ | 26 /* functions */ |
26 virtual void init(); | 27 virtual void init(); |