changeset 311:b09784a9cb09

add smanager interface for test_nogl
author Shinji KONO <kono@ie.u-ryukyu.ac.jp>
date Mon, 08 Jun 2009 22:35:44 +0900
parents c59d8927c4d1
children 57530cb7f7d1
files TaskManager/Test/test_render/Makefile.macosx TaskManager/Test/test_render/tools/create_sglist.pl TaskManager/kernel/schedule/SchedTask.cc include/TaskManager/SchedTask.h
diffstat 4 files changed, 11 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- a/TaskManager/Test/test_render/Makefile.macosx	Mon Jun 08 20:31:29 2009 +0900
+++ b/TaskManager/Test/test_render/Makefile.macosx	Mon Jun 08 22:35:44 2009 +0900
@@ -21,10 +21,10 @@
 .cpp.o:
 	$(CC) $(CFLAGS) $(INCLUDE) -c $< -o $@
 
-all: $(TARGET)
+all: SGList.o $(TARGET)
 
-$(TARGET): SGList.o $(OBJS) $(TASK_OBJS)
-	$(CC) -o $@ SGList.o $(OBJS) $(TASK_OBJS) $(LIBS)
+$(TARGET): $(OBJS) $(TASK_OBJS)
+	$(CC) -o $@ $(OBJS) $(TASK_OBJS) $(LIBS)
 
 
 SGList.o: create_sg_list
@@ -52,4 +52,4 @@
 	rm -f *~ \#*
 	rm -f SGList.h SGList.cpp
 
--include depend.inc
\ No newline at end of file
+-include depend.inc
--- a/TaskManager/Test/test_render/tools/create_sglist.pl	Mon Jun 08 20:31:29 2009 +0900
+++ b/TaskManager/Test/test_render/tools/create_sglist.pl	Mon Jun 08 22:35:44 2009 +0900
@@ -54,6 +54,10 @@
 ####################################
 
 use strict;
+#
+# to install this,
+# cpan -i XML::LibXML::SAX::Generator
+#
 use XML::LibXML;
 
 my $outfile_h = "SGList.h";
--- a/TaskManager/kernel/schedule/SchedTask.cc	Mon Jun 08 20:31:29 2009 +0900
+++ b/TaskManager/kernel/schedule/SchedTask.cc	Mon Jun 08 22:35:44 2009 +0900
@@ -95,7 +95,7 @@
     __scheduler   = sc;
     __cur_index   = index;
 
-
+    smanager = this;
 
     __scheduler->mainMem_wait();
 
--- a/include/TaskManager/SchedTask.h	Mon Jun 08 20:31:29 2009 +0900
+++ b/include/TaskManager/SchedTask.h	Mon Jun 08 22:35:44 2009 +0900
@@ -15,6 +15,8 @@
 
     BASE_NEW_DELETE(SchedTask);
 
+    SchedTask *smanager;
+
 private:
     /* variables */