- Fix test to initialize a set of processes and run a simulation

- The test needs to be linked to Gtkmm, even if it doesn't use it. 
This is wrong and a coding anomaly that will need to be resolved.
- Add debug code to fcfs.py. Please remove it when it'll be okay
- Calling dir(SchedulableList.get_item_at(x)) from Python shows
a worringly empty list!


git-svn-id: svn://svn.gna.org/svn/sgpemv2/trunk@395 3ecf2c5c-341e-0410-92b4-d18e462d057c
This commit is contained in:
tchernobog 2006-02-23 11:29:25 +00:00
parent a2a492b5d5
commit 8d6b7c500e
11 changed files with 236 additions and 33 deletions

View file

@ -1,3 +1,67 @@
2006-02-23 10:12 tchernobog
* trunk/src/backend/pyloader/Policy.py,
trunk/src/backend/pyloader/ScriptAdapter.py,
trunk/src/backend/pyloader/python_policy.cc,
trunk/src/backend/schedulable_list.hh, trunk/src/backend/sgpem.i:
- Previous segmentation fault was due to a faulty call (wrong
parameters to ScriptAdapter.__wrap_sort_queue()). Now prints an
error and check for retval before Py_DECREF'ing it. - Fix(?) qsort
implementation in Policy - SWIG doesn't understand "uint". Change
into more verbose (but surely standard) unsigned int
2006-02-23 09:26 tchernobog
* trunk/Makefile.am, trunk/doc/sgpem2uman.texi,
trunk/src/backend/pyloader/python_policy.cc: - Add note that
building with --disable-shared at the moment doesn't work
2006-02-22 23:21 fpaparel
* trunk/src/backend/schedulable_list.hh: - hemm... updated also the
header!!
2006-02-22 23:19 fpaparel
* trunk/src/backend/schedulable_list.cc: - implemented swap in
schedulable_list.cc
2006-02-22 22:57 tchernobog
* trunk/src/backend/policy.hh, trunk/src/backend/pyloader/Policy.py,
trunk/src/backend/pyloader/python_policy_manager.cc,
trunk/src/backend/sgpem.i, trunk/src/builtin-policies/fcfs.py,
trunk/src/testsuite/test-python_loader.cc: - Implement first draft
of quicksort in Python - Extend test to have a set of processes
(now lacks significative output) - Extend FCFS policy to do
something useful - FIXME : segfaults on sortQueue() - FIXME :
needs implementation for SchedulableQueue.swap()
2006-02-22 22:45 fpaparel
* trunk/src/graphical_simulation.hh,
trunk/src/graphical_terminal_io.cc,
trunk/src/graphical_terminal_io.hh, trunk/src/main.cc,
trunk/src/start_gui.cc, trunk/src/start_gui.hh,
trunk/src/text_simulation.cc, trunk/src/text_simulation.hh: - The
grafical interpreter now works
2006-02-22 21:35 tchernobog
* trunk/src/backend/pyloader/Policy.py,
trunk/src/backend/schedulable_list.hh, trunk/src/backend/sgpem.i:
- Add swap() method signature to SchedulableQueue - Export swap()
to SWIG - Add sort function (just its documentation, actually,
implementation will follow) to Policy.py
2006-02-22 20:36 tchernobog
* trunk/ChangeLog, trunk/Makefile.am,
trunk/src/backend/pyloader/python_policy.cc,
trunk/src/backend/pyloader/python_policy_manager.cc: - "Yeehaw!
It's working! I can't believe it! And they said that an imitation
diamond wasn't good enough..." :-)
2006-02-22 15:16 tchernobog
* trunk/src/backend/dummy_policy.hh, trunk/src/backend/policy.hh,