annotate Renderer/Test/create_task.cc @ 760:24a37fe8419a

first of all commit, not work Rendering/Test/create_task
author hiroki
date Thu, 04 Feb 2010 14:46:09 +0900
parents bb47827c04c1
children 87390c99c900
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
756
2575791a333a add Test/create_task {spe, task}/Property
hiroki@henri.cr.ie.u-ryukyu.ac.jp
parents:
diff changeset
1 #include <math.h>
2575791a333a add Test/create_task {spe, task}/Property
hiroki@henri.cr.ie.u-ryukyu.ac.jp
parents:
diff changeset
2 #include <stdlib.h>
2575791a333a add Test/create_task {spe, task}/Property
hiroki@henri.cr.ie.u-ryukyu.ac.jp
parents:
diff changeset
3 #include "SceneGraphRoot.h"
2575791a333a add Test/create_task {spe, task}/Property
hiroki@henri.cr.ie.u-ryukyu.ac.jp
parents:
diff changeset
4 #include "MainLoop.h"
2575791a333a add Test/create_task {spe, task}/Property
hiroki@henri.cr.ie.u-ryukyu.ac.jp
parents:
diff changeset
5 #include "create_task.h"
757
5238f3e854fc Test/create_task , create SPE task from application.
hiroki
parents: 756
diff changeset
6 #include "types.h"
756
2575791a333a add Test/create_task {spe, task}/Property
hiroki@henri.cr.ie.u-ryukyu.ac.jp
parents:
diff changeset
7 #include "Func.h"
759
bb47827c04c1 fix create_task
hiroki@henri.cr.ie.u-ryukyu.ac.jp
parents: 758
diff changeset
8 #include "SgChange.h"
757
5238f3e854fc Test/create_task , create SPE task from application.
hiroki
parents: 756
diff changeset
9
5238f3e854fc Test/create_task , create SPE task from application.
hiroki
parents: 756
diff changeset
10 Property *property, *update_property;
5238f3e854fc Test/create_task , create SPE task from application.
hiroki
parents: 756
diff changeset
11
756
2575791a333a add Test/create_task {spe, task}/Property
hiroki@henri.cr.ie.u-ryukyu.ac.jp
parents:
diff changeset
12 // prototype
760
24a37fe8419a first of all commit, not work Rendering/Test/create_task
hiroki
parents: 759
diff changeset
13 static void collision(SceneGraphPtr node, void *sgroot_, int screen_w, int screen_h, SceneGraphPtr tree);
756
2575791a333a add Test/create_task {spe, task}/Property
hiroki@henri.cr.ie.u-ryukyu.ac.jp
parents:
diff changeset
14 static void move(SceneGraphPtr node, void *sgroot_, int screen_w, int screen_h);
758
e615e552efa5 change Test/create_task
hiroki
parents: 757
diff changeset
15 static void createSceneGraphFromProperty(SchedTask *s, void *sgroot, void *arg1);
760
24a37fe8419a first of all commit, not work Rendering/Test/create_task
hiroki
parents: 759
diff changeset
16 //static void createSceneGraphFromProperty(void *sgroot, void *property_, void *update_property_);
24a37fe8419a first of all commit, not work Rendering/Test/create_task
hiroki
parents: 759
diff changeset
17 static void set_property(Property *p, SceneGraphPtr sg);
24a37fe8419a first of all commit, not work Rendering/Test/create_task
hiroki
parents: 759
diff changeset
18 static void regist_task(SceneGraphRoot *sgroot);
756
2575791a333a add Test/create_task {spe, task}/Property
hiroki@henri.cr.ie.u-ryukyu.ac.jp
parents:
diff changeset
19
2575791a333a add Test/create_task {spe, task}/Property
hiroki@henri.cr.ie.u-ryukyu.ac.jp
parents:
diff changeset
20 static void
2575791a333a add Test/create_task {spe, task}/Property
hiroki@henri.cr.ie.u-ryukyu.ac.jp
parents:
diff changeset
21 move(SceneGraphPtr node, void *sgroot_, int screen_w, int screen_h)
2575791a333a add Test/create_task {spe, task}/Property
hiroki@henri.cr.ie.u-ryukyu.ac.jp
parents:
diff changeset
22 {
2575791a333a add Test/create_task {spe, task}/Property
hiroki@henri.cr.ie.u-ryukyu.ac.jp
parents:
diff changeset
23 SceneGraphRoot *sgroot = (SceneGraphRoot *)sgroot_;
760
24a37fe8419a first of all commit, not work Rendering/Test/create_task
hiroki
parents: 759
diff changeset
24 //TaskManager *manager = sgroot->tmanager;
24a37fe8419a first of all commit, not work Rendering/Test/create_task
hiroki
parents: 759
diff changeset
25 //HTaskPtr property_task = manager->create_task(PropertyTask);
24a37fe8419a first of all commit, not work Rendering/Test/create_task
hiroki
parents: 759
diff changeset
26 HTaskPtr property_task = sgroot->move_exec_task;
756
2575791a333a add Test/create_task {spe, task}/Property
hiroki@henri.cr.ie.u-ryukyu.ac.jp
parents:
diff changeset
27
2575791a333a add Test/create_task {spe, task}/Property
hiroki@henri.cr.ie.u-ryukyu.ac.jp
parents:
diff changeset
28 property_task->add_inData(property, sizeof(Property));
757
5238f3e854fc Test/create_task , create SPE task from application.
hiroki
parents: 756
diff changeset
29 property_task->add_outData(update_property, sizeof(Property));
760
24a37fe8419a first of all commit, not work Rendering/Test/create_task
hiroki
parents: 759
diff changeset
30
24a37fe8419a first of all commit, not work Rendering/Test/create_task
hiroki
parents: 759
diff changeset
31 //property_task->add_inData((Property *)node->property, sizeof(Property));
24a37fe8419a first of all commit, not work Rendering/Test/create_task
hiroki
parents: 759
diff changeset
32 //property_task->add_outData((Property *)node->update_property, sizeof(Property));
24a37fe8419a first of all commit, not work Rendering/Test/create_task
hiroki
parents: 759
diff changeset
33 //property_task->set_param(0, (memaddr)sgroot->move_finish_flag);
756
2575791a333a add Test/create_task {spe, task}/Property
hiroki@henri.cr.ie.u-ryukyu.ac.jp
parents:
diff changeset
34 property_task->set_cpu(SPE_ANY);
760
24a37fe8419a first of all commit, not work Rendering/Test/create_task
hiroki
parents: 759
diff changeset
35
759
bb47827c04c1 fix create_task
hiroki@henri.cr.ie.u-ryukyu.ac.jp
parents: 758
diff changeset
36 property_task->set_post(createSceneGraphFromProperty, (void *)sgroot, 0);
757
5238f3e854fc Test/create_task , create SPE task from application.
hiroki
parents: 756
diff changeset
37 property_task->spawn();
756
2575791a333a add Test/create_task {spe, task}/Property
hiroki@henri.cr.ie.u-ryukyu.ac.jp
parents:
diff changeset
38 }
2575791a333a add Test/create_task {spe, task}/Property
hiroki@henri.cr.ie.u-ryukyu.ac.jp
parents:
diff changeset
39
2575791a333a add Test/create_task {spe, task}/Property
hiroki@henri.cr.ie.u-ryukyu.ac.jp
parents:
diff changeset
40 static void
2575791a333a add Test/create_task {spe, task}/Property
hiroki@henri.cr.ie.u-ryukyu.ac.jp
parents:
diff changeset
41 collision(SceneGraphPtr node, void *sgroot_, int screen_w, int screen_h,
2575791a333a add Test/create_task {spe, task}/Property
hiroki@henri.cr.ie.u-ryukyu.ac.jp
parents:
diff changeset
42 SceneGraphPtr tree)
2575791a333a add Test/create_task {spe, task}/Property
hiroki@henri.cr.ie.u-ryukyu.ac.jp
parents:
diff changeset
43 {
2575791a333a add Test/create_task {spe, task}/Property
hiroki@henri.cr.ie.u-ryukyu.ac.jp
parents:
diff changeset
44 }
2575791a333a add Test/create_task {spe, task}/Property
hiroki@henri.cr.ie.u-ryukyu.ac.jp
parents:
diff changeset
45
760
24a37fe8419a first of all commit, not work Rendering/Test/create_task
hiroki
parents: 759
diff changeset
46 #if 1
758
e615e552efa5 change Test/create_task
hiroki
parents: 757
diff changeset
47 static void
e615e552efa5 change Test/create_task
hiroki
parents: 757
diff changeset
48 createSceneGraphFromProperty(SchedTask *s, void *sgroot_, void *arg1)
e615e552efa5 change Test/create_task
hiroki
parents: 757
diff changeset
49 {
e615e552efa5 change Test/create_task
hiroki
parents: 757
diff changeset
50 SceneGraphRoot *sgroot = (SceneGraphRoot *)sgroot_;
e615e552efa5 change Test/create_task
hiroki
parents: 757
diff changeset
51 SceneGraphPtr node;
e615e552efa5 change Test/create_task
hiroki
parents: 757
diff changeset
52
e615e552efa5 change Test/create_task
hiroki
parents: 757
diff changeset
53 node = sgroot->createSceneGraph(update_property->name);
759
bb47827c04c1 fix create_task
hiroki@henri.cr.ie.u-ryukyu.ac.jp
parents: 758
diff changeset
54 //node = sgroot->createSceneGraph("Ball");
758
e615e552efa5 change Test/create_task
hiroki
parents: 757
diff changeset
55 node->set_move_collision(move, collision);
e615e552efa5 change Test/create_task
hiroki
parents: 757
diff changeset
56 node->xyz[0] = update_property->xyz[0];
e615e552efa5 change Test/create_task
hiroki
parents: 757
diff changeset
57 node->xyz[1] = update_property->xyz[1];
e615e552efa5 change Test/create_task
hiroki
parents: 757
diff changeset
58 node->xyz[2] = update_property->xyz[2];
e615e552efa5 change Test/create_task
hiroki
parents: 757
diff changeset
59 sgroot->setSceneData(node);
e615e552efa5 change Test/create_task
hiroki
parents: 757
diff changeset
60
e615e552efa5 change Test/create_task
hiroki
parents: 757
diff changeset
61 Property *tmp = property;
e615e552efa5 change Test/create_task
hiroki
parents: 757
diff changeset
62 property = update_property;
e615e552efa5 change Test/create_task
hiroki
parents: 757
diff changeset
63 update_property = tmp;
760
24a37fe8419a first of all commit, not work Rendering/Test/create_task
hiroki
parents: 759
diff changeset
64
24a37fe8419a first of all commit, not work Rendering/Test/create_task
hiroki
parents: 759
diff changeset
65 sgroot->move_finish();
758
e615e552efa5 change Test/create_task
hiroki
parents: 757
diff changeset
66 }
760
24a37fe8419a first of all commit, not work Rendering/Test/create_task
hiroki
parents: 759
diff changeset
67 #else
24a37fe8419a first of all commit, not work Rendering/Test/create_task
hiroki
parents: 759
diff changeset
68 static void
24a37fe8419a first of all commit, not work Rendering/Test/create_task
hiroki
parents: 759
diff changeset
69 createSceneGraphFromProperty(void *sgroot_, void *property_, void *update_property_)
24a37fe8419a first of all commit, not work Rendering/Test/create_task
hiroki
parents: 759
diff changeset
70 {
24a37fe8419a first of all commit, not work Rendering/Test/create_task
hiroki
parents: 759
diff changeset
71 SceneGraphPtr node;
24a37fe8419a first of all commit, not work Rendering/Test/create_task
hiroki
parents: 759
diff changeset
72 SceneGraphRoot *sgroot = (SceneGraphRoot *)sgroot_;
24a37fe8419a first of all commit, not work Rendering/Test/create_task
hiroki
parents: 759
diff changeset
73 Property *property = (Property *)property_;
24a37fe8419a first of all commit, not work Rendering/Test/create_task
hiroki
parents: 759
diff changeset
74 Property *update_property = (Property *)update_property_;
24a37fe8419a first of all commit, not work Rendering/Test/create_task
hiroki
parents: 759
diff changeset
75
24a37fe8419a first of all commit, not work Rendering/Test/create_task
hiroki
parents: 759
diff changeset
76 node = sgroot->createSceneGraph(update_property->name);
24a37fe8419a first of all commit, not work Rendering/Test/create_task
hiroki
parents: 759
diff changeset
77 //node = sgroot->createSceneGraph("Ball");
24a37fe8419a first of all commit, not work Rendering/Test/create_task
hiroki
parents: 759
diff changeset
78 //node->set_move_collision(move, collision);
24a37fe8419a first of all commit, not work Rendering/Test/create_task
hiroki
parents: 759
diff changeset
79 node->set_move_collision(move, collision, createSceneGraphFromProperty);
24a37fe8419a first of all commit, not work Rendering/Test/create_task
hiroki
parents: 759
diff changeset
80 node->xyz[0] = update_property->xyz[0];
24a37fe8419a first of all commit, not work Rendering/Test/create_task
hiroki
parents: 759
diff changeset
81 node->xyz[1] = update_property->xyz[1];
24a37fe8419a first of all commit, not work Rendering/Test/create_task
hiroki
parents: 759
diff changeset
82 node->xyz[2] = update_property->xyz[2];
24a37fe8419a first of all commit, not work Rendering/Test/create_task
hiroki
parents: 759
diff changeset
83 sgroot->setSceneData(node);
24a37fe8419a first of all commit, not work Rendering/Test/create_task
hiroki
parents: 759
diff changeset
84
24a37fe8419a first of all commit, not work Rendering/Test/create_task
hiroki
parents: 759
diff changeset
85 Property *tmp = property;
24a37fe8419a first of all commit, not work Rendering/Test/create_task
hiroki
parents: 759
diff changeset
86 property = update_property;
24a37fe8419a first of all commit, not work Rendering/Test/create_task
hiroki
parents: 759
diff changeset
87 update_property = tmp;
24a37fe8419a first of all commit, not work Rendering/Test/create_task
hiroki
parents: 759
diff changeset
88 }
24a37fe8419a first of all commit, not work Rendering/Test/create_task
hiroki
parents: 759
diff changeset
89 #endif
24a37fe8419a first of all commit, not work Rendering/Test/create_task
hiroki
parents: 759
diff changeset
90
24a37fe8419a first of all commit, not work Rendering/Test/create_task
hiroki
parents: 759
diff changeset
91
24a37fe8419a first of all commit, not work Rendering/Test/create_task
hiroki
parents: 759
diff changeset
92 static void
24a37fe8419a first of all commit, not work Rendering/Test/create_task
hiroki
parents: 759
diff changeset
93 regist_task(SceneGraphRoot *sgroot)
24a37fe8419a first of all commit, not work Rendering/Test/create_task
hiroki
parents: 759
diff changeset
94 {
24a37fe8419a first of all commit, not work Rendering/Test/create_task
hiroki
parents: 759
diff changeset
95 TaskManager *manager = sgroot->tmanager;
24a37fe8419a first of all commit, not work Rendering/Test/create_task
hiroki
parents: 759
diff changeset
96 HTaskPtr property_task = manager->create_task(PropertyTask);
24a37fe8419a first of all commit, not work Rendering/Test/create_task
hiroki
parents: 759
diff changeset
97 sgroot->move_exec_task = property_task;
24a37fe8419a first of all commit, not work Rendering/Test/create_task
hiroki
parents: 759
diff changeset
98 }
24a37fe8419a first of all commit, not work Rendering/Test/create_task
hiroki
parents: 759
diff changeset
99
24a37fe8419a first of all commit, not work Rendering/Test/create_task
hiroki
parents: 759
diff changeset
100
24a37fe8419a first of all commit, not work Rendering/Test/create_task
hiroki
parents: 759
diff changeset
101
758
e615e552efa5 change Test/create_task
hiroki
parents: 757
diff changeset
102
e615e552efa5 change Test/create_task
hiroki
parents: 757
diff changeset
103 static void
e615e552efa5 change Test/create_task
hiroki
parents: 757
diff changeset
104 set_property(Property *p, SceneGraphPtr sg)
e615e552efa5 change Test/create_task
hiroki
parents: 757
diff changeset
105 {
e615e552efa5 change Test/create_task
hiroki
parents: 757
diff changeset
106 p->xyz[0] = sg->xyz[0];
e615e552efa5 change Test/create_task
hiroki
parents: 757
diff changeset
107 p->xyz[1] = sg->xyz[1];
e615e552efa5 change Test/create_task
hiroki
parents: 757
diff changeset
108 p->xyz[2] = sg->xyz[2];
e615e552efa5 change Test/create_task
hiroki
parents: 757
diff changeset
109 p->name = sg->name;
e615e552efa5 change Test/create_task
hiroki
parents: 757
diff changeset
110 }
e615e552efa5 change Test/create_task
hiroki
parents: 757
diff changeset
111
756
2575791a333a add Test/create_task {spe, task}/Property
hiroki@henri.cr.ie.u-ryukyu.ac.jp
parents:
diff changeset
112 MainLoopPtr
759
bb47827c04c1 fix create_task
hiroki@henri.cr.ie.u-ryukyu.ac.jp
parents: 758
diff changeset
113 create_task::init(Viewer *viewer, int screen_w, int screen_h)
756
2575791a333a add Test/create_task {spe, task}/Property
hiroki@henri.cr.ie.u-ryukyu.ac.jp
parents:
diff changeset
114 {
759
bb47827c04c1 fix create_task
hiroki@henri.cr.ie.u-ryukyu.ac.jp
parents: 758
diff changeset
115 // SgChange を使うための2行
bb47827c04c1 fix create_task
hiroki@henri.cr.ie.u-ryukyu.ac.jp
parents: 758
diff changeset
116 SgChange *sgroot = new SgChange(viewer);
bb47827c04c1 fix create_task
hiroki@henri.cr.ie.u-ryukyu.ac.jp
parents: 758
diff changeset
117 sgroot->run_init();
760
24a37fe8419a first of all commit, not work Rendering/Test/create_task
hiroki
parents: 759
diff changeset
118 sgroot->sgroot_A->appTaskRegist(regist_task);
759
bb47827c04c1 fix create_task
hiroki@henri.cr.ie.u-ryukyu.ac.jp
parents: 758
diff changeset
119
758
e615e552efa5 change Test/create_task
hiroki
parents: 757
diff changeset
120 property = (Property *)sgroot->manager->allocate(sizeof(Property));
e615e552efa5 change Test/create_task
hiroki
parents: 757
diff changeset
121 update_property = (Property *)sgroot->manager->allocate(sizeof(Property));
760
24a37fe8419a first of all commit, not work Rendering/Test/create_task
hiroki
parents: 759
diff changeset
122 /*
24a37fe8419a first of all commit, not work Rendering/Test/create_task
hiroki
parents: 759
diff changeset
123 Property *property = (Property *)sgroot->manager->allocate(sizeof(Property));
24a37fe8419a first of all commit, not work Rendering/Test/create_task
hiroki
parents: 759
diff changeset
124 Property *update_property = (Property *)sgroot->manager->allocate(sizeof(Property));
24a37fe8419a first of all commit, not work Rendering/Test/create_task
hiroki
parents: 759
diff changeset
125 */
758
e615e552efa5 change Test/create_task
hiroki
parents: 757
diff changeset
126
756
2575791a333a add Test/create_task {spe, task}/Property
hiroki@henri.cr.ie.u-ryukyu.ac.jp
parents:
diff changeset
127 SceneGraphPtr ball;
2575791a333a add Test/create_task {spe, task}/Property
hiroki@henri.cr.ie.u-ryukyu.ac.jp
parents:
diff changeset
128
2575791a333a add Test/create_task {spe, task}/Property
hiroki@henri.cr.ie.u-ryukyu.ac.jp
parents:
diff changeset
129 sgroot->createFromXMLfile("xml_file/Ball.xml");
2575791a333a add Test/create_task {spe, task}/Property
hiroki@henri.cr.ie.u-ryukyu.ac.jp
parents:
diff changeset
130
2575791a333a add Test/create_task {spe, task}/Property
hiroki@henri.cr.ie.u-ryukyu.ac.jp
parents:
diff changeset
131 ball = sgroot->createSceneGraph("Ball");
2575791a333a add Test/create_task {spe, task}/Property
hiroki@henri.cr.ie.u-ryukyu.ac.jp
parents:
diff changeset
132 ball->set_move_collision(move, collision);
760
24a37fe8419a first of all commit, not work Rendering/Test/create_task
hiroki
parents: 759
diff changeset
133 //ball->set_move_collision(move, collision, createSceneGraphFromProperty);
756
2575791a333a add Test/create_task {spe, task}/Property
hiroki@henri.cr.ie.u-ryukyu.ac.jp
parents:
diff changeset
134
2575791a333a add Test/create_task {spe, task}/Property
hiroki@henri.cr.ie.u-ryukyu.ac.jp
parents:
diff changeset
135 ball->xyz[0] = screen_w/2;
2575791a333a add Test/create_task {spe, task}/Property
hiroki@henri.cr.ie.u-ryukyu.ac.jp
parents:
diff changeset
136 ball->xyz[1] = screen_h/2;
2575791a333a add Test/create_task {spe, task}/Property
hiroki@henri.cr.ie.u-ryukyu.ac.jp
parents:
diff changeset
137 ball->xyz[2] = 30.0f;
2575791a333a add Test/create_task {spe, task}/Property
hiroki@henri.cr.ie.u-ryukyu.ac.jp
parents:
diff changeset
138
760
24a37fe8419a first of all commit, not work Rendering/Test/create_task
hiroki
parents: 759
diff changeset
139 //SceneGraph に property を持たせておく
24a37fe8419a first of all commit, not work Rendering/Test/create_task
hiroki
parents: 759
diff changeset
140 ball->property = (void *)property;
24a37fe8419a first of all commit, not work Rendering/Test/create_task
hiroki
parents: 759
diff changeset
141 ball->update_property = (void *)update_property;
24a37fe8419a first of all commit, not work Rendering/Test/create_task
hiroki
parents: 759
diff changeset
142
758
e615e552efa5 change Test/create_task
hiroki
parents: 757
diff changeset
143 set_property(property, ball);
e615e552efa5 change Test/create_task
hiroki
parents: 757
diff changeset
144
756
2575791a333a add Test/create_task {spe, task}/Property
hiroki@henri.cr.ie.u-ryukyu.ac.jp
parents:
diff changeset
145 sgroot->setSceneData(ball);
2575791a333a add Test/create_task {spe, task}/Property
hiroki@henri.cr.ie.u-ryukyu.ac.jp
parents:
diff changeset
146
2575791a333a add Test/create_task {spe, task}/Property
hiroki@henri.cr.ie.u-ryukyu.ac.jp
parents:
diff changeset
147 return sgroot;
2575791a333a add Test/create_task {spe, task}/Property
hiroki@henri.cr.ie.u-ryukyu.ac.jp
parents:
diff changeset
148 }
2575791a333a add Test/create_task {spe, task}/Property
hiroki@henri.cr.ie.u-ryukyu.ac.jp
parents:
diff changeset
149
2575791a333a add Test/create_task {spe, task}/Property
hiroki@henri.cr.ie.u-ryukyu.ac.jp
parents:
diff changeset
150 extern Application *
2575791a333a add Test/create_task {spe, task}/Property
hiroki@henri.cr.ie.u-ryukyu.ac.jp
parents:
diff changeset
151 application() {
2575791a333a add Test/create_task {spe, task}/Property
hiroki@henri.cr.ie.u-ryukyu.ac.jp
parents:
diff changeset
152 return new create_task();
2575791a333a add Test/create_task {spe, task}/Property
hiroki@henri.cr.ie.u-ryukyu.ac.jp
parents:
diff changeset
153 }
2575791a333a add Test/create_task {spe, task}/Property
hiroki@henri.cr.ie.u-ryukyu.ac.jp
parents:
diff changeset
154
2575791a333a add Test/create_task {spe, task}/Property
hiroki@henri.cr.ie.u-ryukyu.ac.jp
parents:
diff changeset
155 const char *usr_help_str = "Usage: ./test_nogl [OPTION]\n";
2575791a333a add Test/create_task {spe, task}/Property
hiroki@henri.cr.ie.u-ryukyu.ac.jp
parents:
diff changeset
156
2575791a333a add Test/create_task {spe, task}/Property
hiroki@henri.cr.ie.u-ryukyu.ac.jp
parents:
diff changeset
157 extern int init(TaskManager *manager, int argc, char *argv[]);
2575791a333a add Test/create_task {spe, task}/Property
hiroki@henri.cr.ie.u-ryukyu.ac.jp
parents:
diff changeset
158 extern void task_initialize();
2575791a333a add Test/create_task {spe, task}/Property
hiroki@henri.cr.ie.u-ryukyu.ac.jp
parents:
diff changeset
159 static void TMend(TaskManager *manager);
2575791a333a add Test/create_task {spe, task}/Property
hiroki@henri.cr.ie.u-ryukyu.ac.jp
parents:
diff changeset
160
2575791a333a add Test/create_task {spe, task}/Property
hiroki@henri.cr.ie.u-ryukyu.ac.jp
parents:
diff changeset
161 int
2575791a333a add Test/create_task {spe, task}/Property
hiroki@henri.cr.ie.u-ryukyu.ac.jp
parents:
diff changeset
162 TMmain(TaskManager *manager, int argc, char *argv[])
2575791a333a add Test/create_task {spe, task}/Property
hiroki@henri.cr.ie.u-ryukyu.ac.jp
parents:
diff changeset
163 {
2575791a333a add Test/create_task {spe, task}/Property
hiroki@henri.cr.ie.u-ryukyu.ac.jp
parents:
diff changeset
164 task_initialize();
2575791a333a add Test/create_task {spe, task}/Property
hiroki@henri.cr.ie.u-ryukyu.ac.jp
parents:
diff changeset
165 manager->set_TMend(TMend);
2575791a333a add Test/create_task {spe, task}/Property
hiroki@henri.cr.ie.u-ryukyu.ac.jp
parents:
diff changeset
166 return init(manager, argc, argv);
2575791a333a add Test/create_task {spe, task}/Property
hiroki@henri.cr.ie.u-ryukyu.ac.jp
parents:
diff changeset
167
2575791a333a add Test/create_task {spe, task}/Property
hiroki@henri.cr.ie.u-ryukyu.ac.jp
parents:
diff changeset
168 }
2575791a333a add Test/create_task {spe, task}/Property
hiroki@henri.cr.ie.u-ryukyu.ac.jp
parents:
diff changeset
169
2575791a333a add Test/create_task {spe, task}/Property
hiroki@henri.cr.ie.u-ryukyu.ac.jp
parents:
diff changeset
170 void
2575791a333a add Test/create_task {spe, task}/Property
hiroki@henri.cr.ie.u-ryukyu.ac.jp
parents:
diff changeset
171 TMend(TaskManager *manager)
2575791a333a add Test/create_task {spe, task}/Property
hiroki@henri.cr.ie.u-ryukyu.ac.jp
parents:
diff changeset
172 {
2575791a333a add Test/create_task {spe, task}/Property
hiroki@henri.cr.ie.u-ryukyu.ac.jp
parents:
diff changeset
173 printf("test_nogl end\n");
2575791a333a add Test/create_task {spe, task}/Property
hiroki@henri.cr.ie.u-ryukyu.ac.jp
parents:
diff changeset
174 }
2575791a333a add Test/create_task {spe, task}/Property
hiroki@henri.cr.ie.u-ryukyu.ac.jp
parents:
diff changeset
175
2575791a333a add Test/create_task {spe, task}/Property
hiroki@henri.cr.ie.u-ryukyu.ac.jp
parents:
diff changeset
176 /* end */