changeset 1:f47491f4e791

add pdfs.
author kent@teto.cr.ie.u-ryukyu.ac.jp
date Sat, 26 Sep 2009 00:15:22 +0900
parents dcae7e47f2b9
children fa9dd91bc77d 573b34ecf093
files OSC2009_Hash_LRU.pdf OSC2009_HowtoProgrammingwithCerium.pdf OSC2009_panel_cellarch.pdf pseudo_code.cc
diffstat 4 files changed, 61 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
Binary file OSC2009_Hash_LRU.pdf has changed
Binary file OSC2009_HowtoProgrammingwithCerium.pdf has changed
Binary file OSC2009_panel_cellarch.pdf has changed
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/pseudo_code.cc	Sat Sep 26 00:15:22 2009 +0900
@@ -0,0 +1,61 @@
+
+
+
+/* 最初で読み込み  */
+sgroot->createFromXML("cube.xml", CUBE_ID);
+
+/* シーングラフを生成  */
+cube = sgroot->createSceneGraph(CUBE_ID);
+cube->set_move_collision(
+		move_method,
+		collision_method);
+
+/* シーングラフを画面に表示  */
+sgroot->set_scene_data(cube);
+
+
+move_method () {
+	/* SceneGraphの座標を変更する処理  */
+}
+collision_method () {
+	/* 自分以外のSceneGraphと関連する処理 */
+}
+
+/* シーングラフの子を追加  */
+ball_a = sgroot->createSceneGraph(BALL_A_ID);
+ball_b = sgroot->createSceneGraph(BALL_B_ID);
+cube->add_child(ball_a);
+cube->add_child(ball_b);
+
+
+
+/* タスクIDの指定  */
+task = manager->create_task(SPU_TASK);
+/* 入出力先の指定  */
+task->add_inData(rbuff, rbuff_SIZE);
+task->add_outData(wbuff, wbuff_SIZE);
+task->set_cpu(SPE_ANY);
+/* タスク投入  */
+task->spawn();
+
+taskA = manager->create_task(TASK_A);
+taskB = manager->create_task(TASK_B);
+taskC = manager->create_task(TASK_C);
+taskD = manager->create_task(TASK_D);
+
+taskD->wait_for(taskB)
+taskB->wait_for(taskA)
+taskC->wait_for(taskA)
+
+taskD->spawn();
+taskB->spawn();
+taskC->spawn();
+taskA->spawn();
+
+
+
+
+
+
+
+