Commit Graph

530 Commits

Author SHA1 Message Date
tchernobog 74a2d8ff91 - Take in account also that pain in the ass that is MSVC++ on win32
git-svn-id: svn://svn.gna.org/svn/sgpemv2/trunk@1190 3ecf2c5c-341e-0410-92b4-d18e462d057c
2006-09-16 12:57:03 +00:00
elvez f174524b1e - Fixed loading/saving of config on win32. I know it's mainly my fault (I forgot to do an up yesterday night), but ever heard the ancient maxim 'Premature optimization is the root of all evil'?
git-svn-id: svn://svn.gna.org/svn/sgpemv2/trunk@1189 3ecf2c5c-341e-0410-92b4-d18e462d057c
2006-09-16 11:46:19 +00:00
tchernobog deaf0702e5 - Add down_cast<> to safely checking dynamic_casts when in development. Be sure to read its documentation before use\!
git-svn-id: svn://svn.gna.org/svn/sgpemv2/trunk@1188 3ecf2c5c-341e-0410-92b4-d18e462d057c
2006-09-16 11:21:06 +00:00
elvez df862714a0 - Completed porting to win32. Added project files for visual studio.net 2005. Now I can go to sleep (almost) pacefully...
git-svn-id: svn://svn.gna.org/svn/sgpemv2/trunk@1185 3ecf2c5c-341e-0410-92b4-d18e462d057c
2006-09-16 03:23:04 +00:00
paolo 997ead080b - holt_widget: added places used/total to resources
git-svn-id: svn://svn.gna.org/svn/sgpemv2/trunk@1184 3ecf2c5c-341e-0410-92b4-d18e462d057c
2006-09-16 01:38:03 +00:00
paolo 28bd934c50 - bugfix drawing holt_graph
git-svn-id: svn://svn.gna.org/svn/sgpemv2/trunk@1182 3ecf2c5c-341e-0410-92b4-d18e462d057c
2006-09-15 23:29:52 +00:00
tchernobog 5cb771ba81 - Whoops. Too much &-ed values to the file_test bitmask. Sorry 'bout that.
git-svn-id: svn://svn.gna.org/svn/sgpemv2/trunk@1181 3ecf2c5c-341e-0410-92b4-d18e462d057c
2006-09-15 22:29:24 +00:00
paolo 0cbe635c1e - documentation and warning removal: holt_widget.??,
simulation_widget.hh holt_container_window.cc



git-svn-id: svn://svn.gna.org/svn/sgpemv2/trunk@1180 3ecf2c5c-341e-0410-92b4-d18e462d057c
2006-09-15 22:14:23 +00:00
paolo 715e51dc9d - An example of process (and thread) that blocks himself
git-svn-id: svn://svn.gna.org/svn/sgpemv2/trunk@1179 3ecf2c5c-341e-0410-92b4-d18e462d057c
2006-09-15 22:11:57 +00:00
tchernobog 93feee1ee5 - Cleanup GlobalPreferences badly cluttered interface, removing
deprecated methods and things that don't exist in the design
- Put the ``sgpemrc'' application configuration file into
the proper place (``$HOME/.sgpemv2''), creating the directory
if it doesn't exist, as per specs
- Disable test-global_preferences_serialization building since
it doesn't work with the new interface (todo: create a class inheriting 
from GlobalPreferences, and redefining get_config_filename() to return
a tmpname to a mkfifo() pipe connected to the stdout. If you don't understand 
a word of this, you're not a Real Unix Programmer(tm))
- Update other files to use the new interface


git-svn-id: svn://svn.gna.org/svn/sgpemv2/trunk@1178 3ecf2c5c-341e-0410-92b4-d18e462d057c
2006-09-15 21:31:31 +00:00
tchernobog 4080de9f5b - Make set_notify_enabled() methods of Simulation and History private to enforce encapsulation further (so that derived classes don't fall in temptation...)
git-svn-id: svn://svn.gna.org/svn/sgpemv2/trunk@1171 3ecf2c5c-341e-0410-92b4-d18e462d057c
2006-09-15 09:48:58 +00:00
tchernobog 83b655496f - Use a NotifyLock instead of (History|Simulation)::set_notify_enabled() method, which is more elegant and also exception-safe
- Delete set_notify_enabled() method from ConcreteHistory; it was both wrong and useless, and caused impredictable behaviour!
- Don't make some methods of History and Simulation virtual if we don't want the user to override them
- Loading from file and jumping to an instant of the simulation should be much quickier now

git-svn-id: svn://svn.gna.org/svn/sgpemv2/trunk@1170 3ecf2c5c-341e-0410-92b4-d18e462d057c
2006-09-15 09:34:12 +00:00
paolo 737324f250 - cairo_widget.cc - doc. updated
- simulation_widget.?? - doc. completed
- test-holt_widget - warnings removed



git-svn-id: svn://svn.gna.org/svn/sgpemv2/trunk@1169 3ecf2c5c-341e-0410-92b4-d18e462d057c
2006-09-15 10:24:35 +00:00
elvez 7bcd220f89 - Audited some other stuff
git-svn-id: svn://svn.gna.org/svn/sgpemv2/trunk@1165 3ecf2c5c-341e-0410-92b4-d18e462d057c
2006-09-14 23:07:16 +00:00
paolo bd6e52f811 - cairo_widget.cc - documentation completed, removed all warnings
- simulation_widget.hh - documentation completed



git-svn-id: svn://svn.gna.org/svn/sgpemv2/trunk@1164 3ecf2c5c-341e-0410-92b4-d18e462d057c
2006-09-14 22:31:37 +00:00
elvez 503634d7c5 Again, portability fixes
git-svn-id: svn://svn.gna.org/svn/sgpemv2/trunk@1159 3ecf2c5c-341e-0410-92b4-d18e462d057c
2006-09-14 20:42:54 +00:00
tchernobog 93359507ea - Use modff() instead of modf() when using float parameters. C99 standard.
git-svn-id: svn://svn.gna.org/svn/sgpemv2/trunk@1158 3ecf2c5c-341e-0410-92b4-d18e462d057c
2006-09-14 19:41:21 +00:00
elvez 6d54f886f1 - Fixed portability issues. I'm curious to know where that programmer learnt about 'roundf' and 'uint', anyway...
git-svn-id: svn://svn.gna.org/svn/sgpemv2/trunk@1153 3ecf2c5c-341e-0410-92b4-d18e462d057c
2006-09-14 17:42:15 +00:00
tchernobog a075567773 - Put hint in the glade file instead that in the code
git-svn-id: svn://svn.gna.org/svn/sgpemv2/trunk@1152 3ecf2c5c-341e-0410-92b4-d18e462d057c
2006-09-14 16:28:16 +00:00
tchernobog aec289ed92 - Show Statistics and HoltGraph only when the user wants them
git-svn-id: svn://svn.gna.org/svn/sgpemv2/trunk@1151 3ecf2c5c-341e-0410-92b4-d18e462d057c
2006-09-14 16:20:01 +00:00
elvez aeaec77cd1 - Another bit of auditing...
git-svn-id: svn://svn.gna.org/svn/sgpemv2/trunk@1149 3ecf2c5c-341e-0410-92b4-d18e462d057c
2006-09-14 15:31:42 +00:00
elvez 90c562006a - Audited some files
git-svn-id: svn://svn.gna.org/svn/sgpemv2/trunk@1148 3ecf2c5c-341e-0410-92b4-d18e462d057c
2006-09-14 15:10:48 +00:00
elvez c78794e27d - Small changes to compile under vc++
git-svn-id: svn://svn.gna.org/svn/sgpemv2/trunk@1147 3ecf2c5c-341e-0410-92b4-d18e462d057c
2006-09-14 12:52:32 +00:00
tchernobog 8c7b3a2e3d - Fix compilation.
git-svn-id: svn://svn.gna.org/svn/sgpemv2/trunk@1146 3ecf2c5c-341e-0410-92b4-d18e462d057c
2006-09-14 12:38:45 +00:00
paolo c39ecfed50 - documentet cairo_widget.hh
git-svn-id: svn://svn.gna.org/svn/sgpemv2/trunk@1143 3ecf2c5c-341e-0410-92b4-d18e462d057c
2006-09-14 11:47:36 +00:00
fpaparel 03498c1a78 added statistics show/hide, resized windows, added, scrolbars, added
simulation statistics 


git-svn-id: svn://svn.gna.org/svn/sgpemv2/trunk@1141 3ecf2c5c-341e-0410-92b4-d18e462d057c
2006-09-14 10:58:54 +00:00
paolo 4872d56461 - holt_container: partial implemented (and commented) scaling menu
- simulation_widget: added scaling popup menu



git-svn-id: svn://svn.gna.org/svn/sgpemv2/trunk@1138 3ecf2c5c-341e-0410-92b4-d18e462d057c
2006-09-13 22:05:36 +00:00
tchernobog da0aabcf61 - Ensure notifications from History are disabled while
editing a request. This *could* fix the infamous "st8ad_cast"
bug, but there's no guarantee. A backtrace for the bug
shows the problem doesn't happen inside our code, so the
best thing we can do is to kill the bug by static analysis.


git-svn-id: svn://svn.gna.org/svn/sgpemv2/trunk@1136 3ecf2c5c-341e-0410-92b4-d18e462d057c
2006-09-13 19:44:45 +00:00
elvez 8743ede127 - Forgot to escape some text from pango markup
git-svn-id: svn://svn.gna.org/svn/sgpemv2/trunk@1132 3ecf2c5c-341e-0410-92b4-d18e462d057c
2006-09-13 15:49:58 +00:00
elvez 8b07ffa8e4 - Slightly increased size of font
- Added visualization of arrival time

git-svn-id: svn://svn.gna.org/svn/sgpemv2/trunk@1131 3ecf2c5c-341e-0410-92b4-d18e462d057c
2006-09-13 15:34:46 +00:00
paolo 5632540530 - bugfix: show/hide thread now update correctly holt_widget
git-svn-id: svn://svn.gna.org/svn/sgpemv2/trunk@1130 3ecf2c5c-341e-0410-92b4-d18e462d057c
2006-09-13 14:52:11 +00:00
elvez d15643131f - Added support for whole-simulation statistics to textual simulation
git-svn-id: svn://svn.gna.org/svn/sgpemv2/trunk@1128 3ecf2c5c-341e-0410-92b4-d18e462d057c
2006-09-13 13:58:44 +00:00
elvez 5f0f9fed29 - Added visualization of allocated/places for resources
- Updated user manual accordingly with recent changes in the GUI

git-svn-id: svn://svn.gna.org/svn/sgpemv2/trunk@1127 3ecf2c5c-341e-0410-92b4-d18e462d057c
2006-09-13 13:29:46 +00:00
tchernobog 9c50d712f3 - Fix bug in FCFS. Thanks, Filippo.
git-svn-id: svn://svn.gna.org/svn/sgpemv2/trunk@1126 3ecf2c5c-341e-0410-92b4-d18e462d057c
2006-09-13 11:59:44 +00:00
fpaparel b4dd5d592c - Finished backend SimulationStatistics, temporary stdout printout,
added pensieri.xgp to show fcfs problem



git-svn-id: svn://svn.gna.org/svn/sgpemv2/trunk@1125 3ecf2c5c-341e-0410-92b4-d18e462d057c
2006-09-13 11:26:03 +00:00
matrevis 2c9c5ec498 - I forgot to include the policy.
git-svn-id: svn://svn.gna.org/svn/sgpemv2/trunk@1124 3ecf2c5c-341e-0410-92b4-d18e462d057c
2006-09-13 01:28:22 +00:00
matrevis 43bd4369ed - Added priority inversion issue and solution.
git-svn-id: svn://svn.gna.org/svn/sgpemv2/trunk@1123 3ecf2c5c-341e-0410-92b4-d18e462d057c
2006-09-13 01:27:03 +00:00
elvez 240eb23e85 - Added a "State" column
git-svn-id: svn://svn.gna.org/svn/sgpemv2/trunk@1122 3ecf2c5c-341e-0410-92b4-d18e462d057c
2006-09-12 23:17:07 +00:00
elvez 3ef89029ec - Replaced "length" in column header with "duration"
- Make the tree widget display more useful information

git-svn-id: svn://svn.gna.org/svn/sgpemv2/trunk@1121 3ecf2c5c-341e-0410-92b4-d18e462d057c
2006-09-12 22:36:25 +00:00
tchernobog cf38e2078b - Make HoltContainer and StatisticsContainer keep above the main
application window, but not above every window in the desktop


git-svn-id: svn://svn.gna.org/svn/sgpemv2/trunk@1119 3ecf2c5c-341e-0410-92b4-d18e462d057c
2006-09-12 21:48:45 +00:00
tchernobog c77de95412 - Fix involved bug that didn't let the system terminate after
calling JumpTo


git-svn-id: svn://svn.gna.org/svn/sgpemv2/trunk@1118 3ecf2c5c-341e-0410-92b4-d18e462d057c
2006-09-12 21:35:41 +00:00
tchernobog af19489348 - Don't keep a RefPtr to the glade file
git-svn-id: svn://svn.gna.org/svn/sgpemv2/trunk@1115 3ecf2c5c-341e-0410-92b4-d18e462d057c
2006-09-12 20:29:47 +00:00
tchernobog cf4b4d050e - Hide JumpTo progress dialog automatically on_response_event. Doesn't fix the previous bug.
git-svn-id: svn://svn.gna.org/svn/sgpemv2/trunk@1114 3ecf2c5c-341e-0410-92b4-d18e462d057c
2006-09-12 20:23:31 +00:00
tchernobog 0fe1e13ef9 - Move JumpTo to the main window
- Simplify progress dialog for JumpTo
- TODO: this code is buggy. SGPEMv2 won't exit after using JumpTo, unless you
kill it explicitly.


git-svn-id: svn://svn.gna.org/svn/sgpemv2/trunk@1113 3ecf2c5c-341e-0410-92b4-d18e462d057c
2006-09-12 20:15:55 +00:00
tchernobog 538470f96c - Minor fix: correct use of bitmasks
git-svn-id: svn://svn.gna.org/svn/sgpemv2/trunk@1112 3ecf2c5c-341e-0410-92b4-d18e462d057c
2006-09-12 17:55:12 +00:00
paolo bd2999990e - holt_container: added menu to select holt graph disposition
git-svn-id: svn://svn.gna.org/svn/sgpemv2/trunk@1111 3ecf2c5c-341e-0410-92b4-d18e462d057c
2006-09-12 17:09:01 +00:00
paolo fe024ef461 - fixed graph respacing error (in wiew threads)
git-svn-id: svn://svn.gna.org/svn/sgpemv2/trunk@1110 3ecf2c5c-341e-0410-92b4-d18e462d057c
2006-09-12 13:36:27 +00:00
tchernobog 4b9a03359d - Comment out debug code
git-svn-id: svn://svn.gna.org/svn/sgpemv2/trunk@1109 3ecf2c5c-341e-0410-92b4-d18e462d057c
2006-09-12 12:10:03 +00:00
tchernobog efa5b781ef - Small fix: don't reenable history notifications if they
were disabled when we started to load an XML file


git-svn-id: svn://svn.gna.org/svn/sgpemv2/trunk@1106 3ecf2c5c-341e-0410-92b4-d18e462d057c
2006-09-12 09:39:17 +00:00
tchernobog 1d7c053012 - Fixes ConcreteHistory::clear() not resetting history front. Prevent throwing of std::out_of_range when opening a file after having run the simulation.
git-svn-id: svn://svn.gna.org/svn/sgpemv2/trunk@1105 3ecf2c5c-341e-0410-92b4-d18e462d057c
2006-09-12 09:27:35 +00:00
elvez b56ce00a5a - Updated help command
git-svn-id: svn://svn.gna.org/svn/sgpemv2/trunk@1100 3ecf2c5c-341e-0410-92b4-d18e462d057c
2006-09-11 23:52:02 +00:00
tchernobog b90ce71e0f - Licentiously fix license fixed text. Extend my flexible chiasm chewing up a flirting line.
git-svn-id: svn://svn.gna.org/svn/sgpemv2/trunk@1098 3ecf2c5c-341e-0410-92b4-d18e462d057c
2006-09-11 22:05:21 +00:00
matrevis c96a96d683 - Efficiently dropped efficency for the sake of efficiency.
git-svn-id: svn://svn.gna.org/svn/sgpemv2/trunk@1097 3ecf2c5c-341e-0410-92b4-d18e462d057c
2006-09-11 21:56:54 +00:00
matrevis 79d2ae1e44 - Added a new example, "Colori".
git-svn-id: svn://svn.gna.org/svn/sgpemv2/trunk@1096 3ecf2c5c-341e-0410-92b4-d18e462d057c
2006-09-11 21:16:26 +00:00
matrevis c4aac86d0a - Fixed yellow colours.
- Fixed a bug in scheduler, forgetting to block a thread.
- Added a grid feature to simulation_widget
- Added file->new.



git-svn-id: svn://svn.gna.org/svn/sgpemv2/trunk@1095 3ecf2c5c-341e-0410-92b4-d18e462d057c
2006-09-11 21:14:08 +00:00
elvez 849a8ff473 - Description and name of plugins is now correctly displayed in preferences dialog
git-svn-id: svn://svn.gna.org/svn/sgpemv2/trunk@1094 3ecf2c5c-341e-0410-92b4-d18e462d057c
2006-09-11 21:06:23 +00:00
fpaparel 96dbda64cd - Adeed simple tabular statistics, modified statistics interfaces,
updated architecture (don't know if something is missing...)
 


git-svn-id: svn://svn.gna.org/svn/sgpemv2/trunk@1092 3ecf2c5c-341e-0410-92b4-d18e462d057c
2006-09-11 01:32:05 +00:00
elvez afd292142e - (Hopefully) improved readability of colored entities inside the schedulables tree and resource list
git-svn-id: svn://svn.gna.org/svn/sgpemv2/trunk@1091 3ecf2c5c-341e-0410-92b4-d18e462d057c
2006-09-11 00:40:34 +00:00
paolo 4ff377733a - holt_widget: left aligned resource labels if too large
git-svn-id: svn://svn.gna.org/svn/sgpemv2/trunk@1088 3ecf2c5c-341e-0410-92b4-d18e462d057c
2006-09-10 21:29:22 +00:00
fpaparel 2d87f354e1 - Finished backend statistics, added two source files, added simple and TEMPORARY printouts into
simulation_widget



git-svn-id: svn://svn.gna.org/svn/sgpemv2/trunk@1080 3ecf2c5c-341e-0410-92b4-d18e462d057c
2006-09-09 16:04:35 +00:00
matrevis 25ac761844 - User manual, Basics and Prerences Dialog
- Added a new environment to test the difference
  between atomic and non atomic requests


git-svn-id: svn://svn.gna.org/svn/sgpemv2/trunk@1078 3ecf2c5c-341e-0410-92b4-d18e462d057c
2006-09-09 14:23:34 +00:00
tchernobog 48160eb23d - Clamp max percentual in JumpToDialog to avoid a gtk+ warning
git-svn-id: svn://svn.gna.org/svn/sgpemv2/trunk@1077 3ecf2c5c-341e-0410-92b4-d18e462d057c
2006-09-09 12:34:51 +00:00
tchernobog 34825da69b - Expose the Schedulable::set_priority_push() method to python and
outside the backend in general (else, having a 
get_current_priority() method was quite pointless)


git-svn-id: svn://svn.gna.org/svn/sgpemv2/trunk@1070 3ecf2c5c-341e-0410-92b4-d18e462d057c
2006-09-08 20:34:05 +00:00
elvez 0c02a29f8b - "Beautify" debug printout from Python policy manager
- Added support for resource policies in textual frontend

git-svn-id: svn://svn.gna.org/svn/sgpemv2/trunk@1064 3ecf2c5c-341e-0410-92b4-d18e462d057c
2006-09-08 14:15:24 +00:00
tchernobog c1d72439b5 - Enable drawing of resources as ``3d'' cubes
git-svn-id: svn://svn.gna.org/svn/sgpemv2/trunk@1059 3ecf2c5c-341e-0410-92b4-d18e462d057c
2006-09-08 09:49:30 +00:00
paolo c2819ab0ea - holt_widget: changed clipping; label too large aligned left
git-svn-id: svn://svn.gna.org/svn/sgpemv2/trunk@1058 3ecf2c5c-341e-0410-92b4-d18e462d057c
2006-09-08 05:03:57 +00:00
elvez e91cea9676 - Replaced the "configure-cpu-policy" command with a "configure" command which supports either cpu or resource policies. Closes task #34
git-svn-id: svn://svn.gna.org/svn/sgpemv2/trunk@1057 3ecf2c5c-341e-0410-92b4-d18e462d057c
2006-09-07 23:50:46 +00:00
tchernobog e4d359304c - Add exception checking to ConcreteSimulation::jump_to()
git-svn-id: svn://svn.gna.org/svn/sgpemv2/trunk@1054 3ecf2c5c-341e-0410-92b4-d18e462d057c
2006-09-07 21:26:41 +00:00
matrevis a9c0ff01d2 - Added resource policies: FIFO and Priority.
git-svn-id: svn://svn.gna.org/svn/sgpemv2/trunk@1052 3ecf2c5c-341e-0410-92b4-d18e462d057c
2006-09-07 19:22:38 +00:00
tchernobog f7eb44bf64 - Fix ``make distcheck''
git-svn-id: svn://svn.gna.org/svn/sgpemv2/trunk@1051 3ecf2c5c-341e-0410-92b4-d18e462d057c
2006-09-07 19:12:19 +00:00
fpaparel 8271a880b2 - added source files
git-svn-id: svn://svn.gna.org/svn/sgpemv2/trunk@1050 3ecf2c5c-341e-0410-92b4-d18e462d057c
2006-09-07 18:05:40 +00:00
tchernobog 81c34f5ce8 - Revert bad change
git-svn-id: svn://svn.gna.org/svn/sgpemv2/trunk@1049 3ecf2c5c-341e-0410-92b4-d18e462d057c
2006-09-07 18:00:48 +00:00
fpaparel 3e4848b999 - Added statistics skeletron, updated gradients
git-svn-id: svn://svn.gna.org/svn/sgpemv2/trunk@1048 3ecf2c5c-341e-0410-92b4-d18e462d057c
2006-09-07 17:52:19 +00:00
tchernobog 312b67e2a4 - Re-enable clipping for HoltSchedulable
- Add missing header to Makefile.am 
- Regen POTFILE.in


git-svn-id: svn://svn.gna.org/svn/sgpemv2/trunk@1046 3ecf2c5c-341e-0410-92b4-d18e462d057c
2006-09-07 16:56:42 +00:00
paolo 8cfa2469b2 - holt+simulation widgets: fixed errors on Simulation/History update
- gui_builder: resize and redraw showing/hidig threads on widgets



git-svn-id: svn://svn.gna.org/svn/sgpemv2/trunk@1043 3ecf2c5c-341e-0410-92b4-d18e462d057c
2006-09-07 15:01:29 +00:00
tchernobog 449af3cd3e - Use 3d spheres to show processes or threads. I've temporarily
disabled clipping on the schedulables name since I'm busy on other 
tasks now, I'll fix that later this afternoon. This is an intermediate
commit.


git-svn-id: svn://svn.gna.org/svn/sgpemv2/trunk@1041 3ecf2c5c-341e-0410-92b4-d18e462d057c
2006-09-07 11:53:50 +00:00
elvez a681f92dcb - Handle exceptions in jumpto dialog, simpy copying it from SimulationController
git-svn-id: svn://svn.gna.org/svn/sgpemv2/trunk@1040 3ecf2c5c-341e-0410-92b4-d18e462d057c
2006-09-07 11:28:08 +00:00
elvez 80f559ec7b - Hopefully fixed instant reached by jumpto dialog
git-svn-id: svn://svn.gna.org/svn/sgpemv2/trunk@1039 3ecf2c5c-341e-0410-92b4-d18e462d057c
2006-09-07 11:02:09 +00:00
elvez 162e0f95e5 - Fix misleandingly-indented code
git-svn-id: svn://svn.gna.org/svn/sgpemv2/trunk@1038 3ecf2c5c-341e-0410-92b4-d18e462d057c
2006-09-07 10:52:13 +00:00
tchernobog 1203372f3e - Small fix for the sake of code correctness
git-svn-id: svn://svn.gna.org/svn/sgpemv2/trunk@1037 3ecf2c5c-341e-0410-92b4-d18e462d057c
2006-09-07 09:56:56 +00:00
tchernobog 3fe76dad2d - Fix JumpTo dialog the better I can. Now it should work.
- TODO: manage exceptions both in Simulation::jump_to()
and in JumpToDialog
- TODO: check the semantic of _target_instant, maybe its value
is 1 more than expected?


git-svn-id: svn://svn.gna.org/svn/sgpemv2/trunk@1036 3ecf2c5c-341e-0410-92b4-d18e462d057c
2006-09-07 09:32:24 +00:00
elvez 4aa7bcf460 - Implemented jumpto for the gui, it has some problems, but at 4:00 AM a human being should be doing something else, perhaps sleeping
git-svn-id: svn://svn.gna.org/svn/sgpemv2/trunk@1034 3ecf2c5c-341e-0410-92b4-d18e462d057c
2006-09-07 02:08:00 +00:00
tchernobog 0f718f2899 - Fix all includes, separating header files to be installed
from other headers. Take it while it's hot.
- To all those that lock source files: you'll burn in hell. Really.
It'll be painful, dreadful and above all *long*. *Eternally* long.
And there'll be Freddy Mercury and The Queen playing, *all the time*, 
day after boring, useless, sorrowful day. The song
will be *``Radio Ga-Ga''*, in secula secularum amen.


git-svn-id: svn://svn.gna.org/svn/sgpemv2/trunk@1033 3ecf2c5c-341e-0410-92b4-d18e462d057c
2006-09-07 00:43:00 +00:00
matrevis 6458511399 - Preferences completed.
git-svn-id: svn://svn.gna.org/svn/sgpemv2/trunk@1032 3ecf2c5c-341e-0410-92b4-d18e462d057c
2006-09-07 00:23:50 +00:00
tchernobog 3dbb0dbd80 - Prettify ReadyQueueWidget adding also the printout of the
current simulation instant


git-svn-id: svn://svn.gna.org/svn/sgpemv2/trunk@1031 3ecf2c5c-341e-0410-92b4-d18e462d057c
2006-09-06 18:56:42 +00:00
tchernobog e31aa3bf9c - Add code for freeing memory also in destructor
git-svn-id: svn://svn.gna.org/svn/sgpemv2/trunk@1030 3ecf2c5c-341e-0410-92b4-d18e462d057c
2006-09-06 18:35:51 +00:00
tchernobog 93fefe49e0 - Fix a leak in HoltWidget
- Add a for_each_in() template in sequences.tcc


git-svn-id: svn://svn.gna.org/svn/sgpemv2/trunk@1029 3ecf2c5c-341e-0410-92b4-d18e462d057c
2006-09-06 18:31:32 +00:00
tchernobog 8e20f5499f - Simplify a little sequences' interface
git-svn-id: svn://svn.gna.org/svn/sgpemv2/trunk@1028 3ecf2c5c-341e-0410-92b4-d18e462d057c
2006-09-06 17:39:46 +00:00
tchernobog c62734ef59 - Quick hack to the code of SimulationWidget to draw the
interval [a, b) of History (where b is the front), instead 
than (a, b].
- TODO: SimulationWidget would sincerely benefit from some
more comments in the code


git-svn-id: svn://svn.gna.org/svn/sgpemv2/trunk@1027 3ecf2c5c-341e-0410-92b4-d18e462d057c
2006-09-06 17:09:07 +00:00
tchernobog 22dded7243 - Fix the bug about reconfiguring a policy don't resetting the
History the Hard Way(tm)


git-svn-id: svn://svn.gna.org/svn/sgpemv2/trunk@1026 3ecf2c5c-341e-0410-92b4-d18e462d057c
2006-09-06 16:33:39 +00:00
tchernobog cb1d85a4cc - Add a widget to show the ReadyQueue
- Change slightly the gradients of the SimulationWidget to make
them more aggressive. Bite, Fido! :-)


git-svn-id: svn://svn.gna.org/svn/sgpemv2/trunk@1025 3ecf2c5c-341e-0410-92b4-d18e462d057c
2006-09-06 14:51:53 +00:00
tchernobog dbfc7393ed - Fix all policies to ensure that the sort *IS* stable
- Erase the newly selected running thread from the ready queue
as per Marco feedback (or so I believe to have understood...)


git-svn-id: svn://svn.gna.org/svn/sgpemv2/trunk@1024 3ecf2c5c-341e-0410-92b4-d18e462d057c
2006-09-06 13:04:31 +00:00
tchernobog df4b1b4205 - Merge branch 0.3-r1003--scheduler-manage-preemption into trunk
git-svn-id: svn://svn.gna.org/svn/sgpemv2/trunk@1023 3ecf2c5c-341e-0410-92b4-d18e462d057c
2006-09-06 12:29:22 +00:00
paolo 08a4cd4f63 - added menu items in View to show/hide threads and holt_widget
git-svn-id: svn://svn.gna.org/svn/sgpemv2/trunk@1021 3ecf2c5c-341e-0410-92b4-d18e462d057c
2006-09-06 09:17:34 +00:00
paolo 7274d9759c - gui_builder: added View menu items methods
- to show/hide threads
  - to show/hide holt widget
  


git-svn-id: svn://svn.gna.org/svn/sgpemv2/trunk@1020 3ecf2c5c-341e-0410-92b4-d18e462d057c
2006-09-06 09:12:53 +00:00
tchernobog d9d88e7032 - Put Simulation in stopped state before changing policy (doesn't
prevent a sigsegv if you try to change it while the simulation
is running)
- Use a red color to indicate a blocked thread / unallocable request
in widgets
- TODO: try the deadlock test w/ the rr (NOT the rr_priority) cpu
policy. There's something wrong with the policy...


git-svn-id: svn://svn.gna.org/svn/sgpemv2/trunk@1019 3ecf2c5c-341e-0410-92b4-d18e462d057c
2006-09-06 08:46:06 +00:00
elvez 96190cd76d - Added wizard for testing of a bug which should now be fixed in branch 0.3-r1003--scheduler-manage-preemption
git-svn-id: svn://svn.gna.org/svn/sgpemv2/trunk@1017 3ecf2c5c-341e-0410-92b4-d18e462d057c
2006-09-06 00:30:06 +00:00
matrevis 68d5f30f64 - Defaults to thread view.
- Enforcing resource policy the old way.


git-svn-id: svn://svn.gna.org/svn/sgpemv2/trunk@1016 3ecf2c5c-341e-0410-92b4-d18e462d057c
2006-09-06 00:29:11 +00:00
paolo 2b9942bbec - test-holt_widget: temporary added an extra holt_widget in container
- gui_builder: added an holt_widget in container
- Makefile.am: added holt_containr_window accordling 



git-svn-id: svn://svn.gna.org/svn/sgpemv2/trunk@1015 3ecf2c5c-341e-0410-92b4-d18e462d057c
2006-09-05 23:54:16 +00:00
paolo 51ce976d65 - fixed redrawing bug
git-svn-id: svn://svn.gna.org/svn/sgpemv2/trunk@1014 3ecf2c5c-341e-0410-92b4-d18e462d057c
2006-09-05 23:49:55 +00:00