Commit Graph

518 Commits

Author SHA1 Message Date
tchernobog a37be5231b - Add some comments
git-svn-id: svn://svn.gna.org/svn/sgpemv2/trunk@1266 3ecf2c5c-341e-0410-92b4-d18e462d057c
2006-09-17 22:22:18 +00:00
tchernobog 581477fa70 - Some more auditing
git-svn-id: svn://svn.gna.org/svn/sgpemv2/trunk@1264 3ecf2c5c-341e-0410-92b4-d18e462d057c
2006-09-17 22:07:50 +00:00
matrevis 160e9b4929 - More audited files. No more headers for me to audit.
git-svn-id: svn://svn.gna.org/svn/sgpemv2/trunk@1257 3ecf2c5c-341e-0410-92b4-d18e462d057c
2006-09-17 21:13:24 +00:00
tchernobog c3f77d68a3 - Valiantly recuperate Marco's comments in ResourcePolicyPriority with
the aid of GNU Emacs


git-svn-id: svn://svn.gna.org/svn/sgpemv2/trunk@1255 3ecf2c5c-341e-0410-92b4-d18e462d057c
2006-09-17 20:22:46 +00:00
tchernobog 972db124e6 - Don't expose unnecessary interface
- Do a bit of auditing


git-svn-id: svn://svn.gna.org/svn/sgpemv2/trunk@1250 3ecf2c5c-341e-0410-92b4-d18e462d057c
2006-09-17 19:59:41 +00:00
tchernobog 0c8e39eeec - Fix old leak.
git-svn-id: svn://svn.gna.org/svn/sgpemv2/trunk@1248 3ecf2c5c-341e-0410-92b4-d18e462d057c
2006-09-17 19:12:52 +00:00
matrevis e5fdf77166 - Audited some more files.
git-svn-id: svn://svn.gna.org/svn/sgpemv2/trunk@1245 3ecf2c5c-341e-0410-92b4-d18e462d057c
2006-09-17 19:04:14 +00:00
tchernobog 83c648ffe9 - Fix bug in scheduler not erasing the running thread from the ready queue,
if it blocked because it immediately raised new unallocable (sub)requests. This
made the value of "alive_threads" wrong.


git-svn-id: svn://svn.gna.org/svn/sgpemv2/trunk@1244 3ecf2c5c-341e-0410-92b4-d18e462d057c
2006-09-17 18:26:48 +00:00
tchernobog 3fd03341ae - Load plugins. Still not fixed sigsegv. Will see after dinner.
git-svn-id: svn://svn.gna.org/svn/sgpemv2/trunk@1243 3ecf2c5c-341e-0410-92b4-d18e462d057c
2006-09-17 17:36:08 +00:00
elvez fbcc9e9267 - Partially updated win32 project files
git-svn-id: svn://svn.gna.org/svn/sgpemv2/trunk@1242 3ecf2c5c-341e-0410-92b4-d18e462d057c
2006-09-17 17:24:51 +00:00
tchernobog f3e7ee0393 - Fix bunch of nasty bugs into ConcreteHistory
git-svn-id: svn://svn.gna.org/svn/sgpemv2/trunk@1241 3ecf2c5c-341e-0410-92b4-d18e462d057c
2006-09-17 17:05:43 +00:00
matrevis a61b21d94b - Audited resource_policy_prioirty.hh and others
- Minor corrections to other policies
- Corrected email address in deb distro


git-svn-id: svn://svn.gna.org/svn/sgpemv2/trunk@1239 3ecf2c5c-341e-0410-92b4-d18e462d057c
2006-09-17 16:26:02 +00:00
jinx 1569165eb7 test fo the statistic calculus --gv
git-svn-id: svn://svn.gna.org/svn/sgpemv2/trunk@1236 3ecf2c5c-341e-0410-92b4-d18e462d057c
2006-09-17 16:04:13 +00:00
matrevis 859df07a89 - Gettext support to resource policies descriptions.
- Renamed default_resource_policy_manager to match the design.
- Audited some other files.


git-svn-id: svn://svn.gna.org/svn/sgpemv2/trunk@1232 3ecf2c5c-341e-0410-92b4-d18e462d057c
2006-09-17 15:32:56 +00:00
tchernobog b1034d2589 - Substitute old "inf" values in Adjustements with
a maximum of ~65000. This should make .glade files
compatible with glade3.


git-svn-id: svn://svn.gna.org/svn/sgpemv2/trunk@1228 3ecf2c5c-341e-0410-92b4-d18e462d057c
2006-09-17 13:45:47 +00:00
matrevis b976aaaa34 - Audited schedulable.hh
- Removed holt_graph.* since they were unused
- Updated makefile accordingly


git-svn-id: svn://svn.gna.org/svn/sgpemv2/trunk@1227 3ecf2c5c-341e-0410-92b4-d18e462d057c
2006-09-17 13:44:17 +00:00
tchernobog 449d1cadad - Let the user jump to instant 0
- Fix adjustment for jumpto in the XML file by hand, since glade3 has a nasty bug
about spinbox values


git-svn-id: svn://svn.gna.org/svn/sgpemv2/trunk@1226 3ecf2c5c-341e-0410-92b4-d18e462d057c
2006-09-17 13:21:21 +00:00
tchernobog 76b33d4269 - Set window title with current filename
- Add error dialogs for serializer-related exceptions


git-svn-id: svn://svn.gna.org/svn/sgpemv2/trunk@1225 3ecf2c5c-341e-0410-92b4-d18e462d057c
2006-09-17 13:03:07 +00:00
tchernobog 17f243db1a - Fix compilation
git-svn-id: svn://svn.gna.org/svn/sgpemv2/trunk@1222 3ecf2c5c-341e-0410-92b4-d18e462d057c
2006-09-17 10:13:15 +00:00
paolo a2c6df90b7 - program files documentation
git-svn-id: svn://svn.gna.org/svn/sgpemv2/trunk@1221 3ecf2c5c-341e-0410-92b4-d18e462d057c
2006-09-17 08:48:27 +00:00
jinx 08a7b4162e auditing performed, made some changes like removed std, or corrected the name of the file, and in come cases added the licence text where it was missing --gv
git-svn-id: svn://svn.gna.org/svn/sgpemv2/trunk@1219 3ecf2c5c-341e-0410-92b4-d18e462d057c
2006-09-17 01:19:10 +00:00
jinx 925e8e7671 auditing performed, made some changes like removed std, or corrected the name of the file, and in come cases added the licence text where it was missing --gv
git-svn-id: svn://svn.gna.org/svn/sgpemv2/trunk@1218 3ecf2c5c-341e-0410-92b4-d18e462d057c
2006-09-17 01:16:37 +00:00
jinx caa067c4c6 auditing performed, removed using added minimal documentation --gv
git-svn-id: svn://svn.gna.org/svn/sgpemv2/trunk@1217 3ecf2c5c-341e-0410-92b4-d18e462d057c
2006-09-17 01:05:59 +00:00
jinx dd768861b0 auditing performed, removed using namespce std --gv
git-svn-id: svn://svn.gna.org/svn/sgpemv2/trunk@1216 3ecf2c5c-341e-0410-92b4-d18e462d057c
2006-09-17 00:54:43 +00:00
elvez b3e76d99b6 - Completed my part of auditing
git-svn-id: svn://svn.gna.org/svn/sgpemv2/trunk@1215 3ecf2c5c-341e-0410-92b4-d18e462d057c
2006-09-16 23:47:45 +00:00
tchernobog 2935d9fcfd - Ask if you want to save also when closing main window, or
opening another file


git-svn-id: svn://svn.gna.org/svn/sgpemv2/trunk@1213 3ecf2c5c-341e-0410-92b4-d18e462d057c
2006-09-16 22:27:34 +00:00
tchernobog 927f912e07 - Make documentation of struct _down_cast slightly better.
git-svn-id: svn://svn.gna.org/svn/sgpemv2/trunk@1212 3ecf2c5c-341e-0410-92b4-d18e462d057c
2006-09-16 21:51:50 +00:00
paolo 77eca3ba4e - program files documentation
git-svn-id: svn://svn.gna.org/svn/sgpemv2/trunk@1210 3ecf2c5c-341e-0410-92b4-d18e462d057c
2006-09-16 21:36:46 +00:00
tchernobog 094c58a580 - Revert garbled commit of fpaparel for process_statistics.hh. I've no time to lose with careless thinkerers.
- Make ConcreteSimulation::step() private as it should always have been
- Delete useless SchedulableStateWidget class

git-svn-id: svn://svn.gna.org/svn/sgpemv2/trunk@1208 3ecf2c5c-341e-0410-92b4-d18e462d057c
2006-09-16 20:22:16 +00:00
tchernobog 86a844c21f - Remove executable bit from statistics.hh
git-svn-id: svn://svn.gna.org/svn/sgpemv2/trunk@1206 3ecf2c5c-341e-0410-92b4-d18e462d057c
2006-09-16 19:41:53 +00:00
fpaparel f23e394458 - Commented statistics headers
git-svn-id: svn://svn.gna.org/svn/sgpemv2/trunk@1205 3ecf2c5c-341e-0410-92b4-d18e462d057c
2006-09-16 19:31:47 +00:00
elvez ec84480e2d - Another bit of auditing
git-svn-id: svn://svn.gna.org/svn/sgpemv2/trunk@1202 3ecf2c5c-341e-0410-92b4-d18e462d057c
2006-09-16 17:04:20 +00:00
tchernobog ee1810df10 - Add missing include for the debug printout
git-svn-id: svn://svn.gna.org/svn/sgpemv2/trunk@1201 3ecf2c5c-341e-0410-92b4-d18e462d057c
2006-09-16 17:01:26 +00:00
tchernobog 4ff9985ad5 - Fix the st8ad_cast bug. Please report it has been fixed
with this revision number into the anomaly records.


git-svn-id: svn://svn.gna.org/svn/sgpemv2/trunk@1200 3ecf2c5c-341e-0410-92b4-d18e462d057c
2006-09-16 16:59:59 +00:00
tchernobog 961bcf6dc6 - Put back the "--enable-visibility-support" flag into configure.
Now the visibility support is also disabled by default.


git-svn-id: svn://svn.gna.org/svn/sgpemv2/trunk@1198 3ecf2c5c-341e-0410-92b4-d18e462d057c
2006-09-16 16:21:22 +00:00
tchernobog 4472ae0183 - Use dynamic_cast anyway, since static_cast doesn't play well
with multiple inheritance


git-svn-id: svn://svn.gna.org/svn/sgpemv2/trunk@1197 3ecf2c5c-341e-0410-92b4-d18e462d057c
2006-09-16 14:40:03 +00:00
tchernobog 6d4e756546 - Use our down_cast<> instead of dynamic_cast<> where possible. Now bug-hunting the
infamous st8ad_cast bug.


git-svn-id: svn://svn.gna.org/svn/sgpemv2/trunk@1194 3ecf2c5c-341e-0410-92b4-d18e462d057c
2006-09-16 13:52:49 +00:00
tchernobog d128ee8608 - Fix portability issues with config.h header. Now it is
included by the compiler (via a flag) and the visibility
macros have been moved to a separate header. You'll
probably need to cleanup your source dir and re-run autogen.sh
before compiling sgpem again.


git-svn-id: svn://svn.gna.org/svn/sgpemv2/trunk@1191 3ecf2c5c-341e-0410-92b4-d18e462d057c
2006-09-16 13:34:43 +00:00
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