- "Yeehaw! It's working! I can't believe it! And they said that an imitation

diamond wasn't good enough..." :-)


git-svn-id: svn://svn.gna.org/svn/sgpemv2/trunk@384 3ecf2c5c-341e-0410-92b4-d18e462d057c
This commit is contained in:
tchernobog 2006-02-22 20:36:33 +00:00
parent 8f655f2f69
commit eecb9f109f
4 changed files with 133 additions and 4 deletions

127
ChangeLog
View File

@ -1,3 +1,130 @@
2006-02-22 15:16 tchernobog
* trunk/src/backend/dummy_policy.hh, trunk/src/backend/policy.hh,
trunk/src/backend/pyloader/Policy.py,
trunk/src/backend/pyloader/ScriptAdapter.py,
trunk/src/backend/pyloader/python_policy.cc,
trunk/src/backend/pyloader/python_policy.hh,
trunk/src/backend/pyloader/python_policy_manager.cc,
trunk/src/builtin-policies/fcfs.py: - Finish implementing async
setup for Python policies' access - Correct method names for the
Python policy (design problem?) - Compiles, but can't run it on
this machine. I'll test it later (and I expect quite a lot of
SIGSEGVs).
2006-02-22 14:27 tchernobog
* trunk/config/Doxyfile.in: - Don't include full paths
2006-02-22 12:39 tchernobog
* trunk/src/backend/pyloader/python_policy_manager.cc: - Super mega
hacked implementation of python_policy_manager. Haven't tried
running it.
2006-02-22 10:36 tchernobog
* trunk/doc/sgpem2dman.texi: - Guess what: correcting a typo that
prevented compiling
2006-02-22 00:09 jinx
* trunk/doc/sgpem2dman.texi: sgpem2dman.texi: added the anomaly
classes in the subsection about anomaly resolution.
2006-02-21 22:57 tchernobog
* trunk/Makefile.am, trunk/src/backend/pyloader/ScriptAdapter.py,
trunk/src/backend/pyloader/python_policy_manager.cc,
trunk/src/backend/pyloader/python_policy_manager.hh,
trunk/src/backend/sgpem.i, trunk/src/builtin-policies/fcfs.py,
trunk/src/testsuite/test-python_loader.cc: - Add first
undocumented (and quite useless) test for libpyloader. It doesn't
work properly for no apparent reason. - Add SWIG interface
generation for Scheduler
2006-02-21 20:35 tchernobog
* trunk/Makefile.am: - Typo (surprising, isn't it?)
2006-02-21 15:18 tchernobog
* trunk/Makefile.am: - Update makefile to build ScriptAdapter.py
2006-02-21 15:18 tchernobog
* trunk/src/backend/pyloader/ScriptAdapter.py: - Added initial
interface for the PythonScript adapter
2006-02-21 12:20 tchernobog
* trunk/src/backend/pyloader/python_policy_manager.cc: - Add
preliminary code for Python policy management
2006-02-21 11:30 tchernobog
* trunk/Makefile.am, trunk/src/backend/sgpem.i, trunk/src/main.cc,
trunk/src/text_simulation.cc, trunk/src/text_simulation.hh: - This
is a save point (everything compiles again) ;-)
2006-02-21 11:29 fpaparel
* trunk/src/backend/string_utils.cc,
trunk/src/backend/string_utils.hh: - Die tortoise-svn die
2006-02-21 11:15 fpaparel
* trunk/src/backend/dummy_policy.cc,
trunk/src/backend/dummy_policy.hh: - Add dummy policy left out of
previous commit
2006-02-21 11:09 fpaparel
* trunk/src/backend/history.cc, trunk/src/backend/history.hh,
trunk/src/backend/observed_subject.cc,
trunk/src/backend/policy.cc, trunk/src/backend/policy.hh,
trunk/src/backend/schedulable_list.cc,
trunk/src/backend/scheduler.cc, trunk/src/backend/scheduler.hh,
trunk/src/graphical_simulation.hh, trunk/src/io_manager.hh,
trunk/src/main.cc, trunk/src/simulation.cc,
trunk/src/simulation.hh, trunk/src/standard_io.cc,
trunk/src/standard_io.hh, trunk/src/text_simulation.cc,
trunk/src/text_simulation.hh: - fixed a number of bugs - added
dummy_policy written in C++ - the interpreter is now finished
(hopefully)
2006-02-21 10:31 tchernobog
* trunk/src/backend/pyloader/Policy.py,
trunk/src/backend/pyloader/python_policy_manager.cc,
trunk/src/backend/pyloader/python_policy_manager.hh: - Typos
2006-02-21 07:39 tchernobog
* trunk/Makefile.am, trunk/src/backend/pyloader/Policy.py,
trunk/src/backend/schedulable_list.hh,
trunk/src/backend/schedulable_status.hh,
trunk/src/backend/sgpem.i, trunk/src/builtin-policies/fcfs.py: -
Add initial layout for further builtin policies (needs to be
expanded / fixed)
2006-02-20 21:26 tchernobog
* trunk/Makefile.am, trunk/configure.ac, trunk/m4/compilerflags.m4,
trunk/m4/linkingflags.m4, trunk/src/templates/parameter.tcc: - Fix
Python/C++ module compilation when compiler supports the
-fvisibility=hidden option - Update Makefile consequentially
2006-02-20 19:10 tchernobog
* trunk/ChangeLog, trunk/src/backend/policy_parameters.hh,
trunk/src/backend/sgpem.i: - Rewrite sgpem module interface file
with adapter methods
2006-02-20 12:56 tchernobog
* trunk/src/templates/smartp.hh: - Fix documentation a little
2006-02-20 00:12 tchernobog 2006-02-20 00:12 tchernobog
* trunk/Makefile.am, trunk/config/Doxyfile.in: - Change order on * trunk/Makefile.am, trunk/config/Doxyfile.in: - Change order on

View File

@ -129,7 +129,8 @@ src_backend_pyloader_libpyloader_la_LIBADD = \
src/backend/libbackend.la src/backend/libbackend.la
src_backend_pyloader_libpyloader_la_LDFLAGS = \ src_backend_pyloader_libpyloader_la_LDFLAGS = \
$(PYTHON_EXTRA_LDFLAGS) \ $(PYTHON_EXTRA_LDFLAGS) \
$(LT_LDFLAGS) $(LT_LDFLAGS) \
-version-info 0:0:0
# Please keep this in sorted order: # Please keep this in sorted order:
src_backend_pyloader_libpyloader_la_SOURCES = \ src_backend_pyloader_libpyloader_la_SOURCES = \
@ -165,7 +166,8 @@ src_backend_libbackend_la_CXXFLAGS = \
$(VISIB_HIDDEN) $(VISIB_HIDDEN)
src_backend_libbackend_la_LDFLAGS = \ src_backend_libbackend_la_LDFLAGS = \
$(GLIBMM_LDFLAGS) \ $(GLIBMM_LDFLAGS) \
$(LT_LDFLAGS) $(LT_LDFLAGS) \
-version-info 0:0:0
# Please keep this in sorted order: # Please keep this in sorted order:
src_backend_libbackend_la_SOURCES = \ src_backend_libbackend_la_SOURCES = \

View File

@ -156,7 +156,7 @@ PythonPolicy::wait_unlock() const
{ {
PyThreadState *_save; PyThreadState *_save;
Py_UNBLOCK_THREADS Py_UNBLOCK_THREADS
sleep(5); // hack'a'ton! magggggiccc nummmbeeerrrrrs!! sleep(2); // hack'a'ton! magggggiccc nummmbeeerrrrrs!!
// What we should really do here: // What we should really do here:
/* do { /* do {

View File

@ -78,5 +78,5 @@ PythonPolicyManager::init()
char* policy_name = "fcfs"; char* policy_name = "fcfs";
PythonPolicy policy(policy_name); PythonPolicy policy(policy_name);
policy.configure(); policy.configure();
std::cout << policy.get_time_slice() << std::endl;
} }