Commit graph

21 commits

Author SHA1 Message Date
c406d16fbc threadwrapper-test should have been better written this way... 2010-02-04 18:48:47 +01:00
Christian Thaeter
2b74d82f13 remove threadpool initialization, this is done elsewhere now
Subsystem runner/-test is still broken, sometimes segfaults
2010-01-30 07:37:32 +01:00
Christian Thaeter
f17249713c WIP: subsystem runner test, still broken
using new thread synchronization

Disabled further tests, making one after another working.

Some notes:
 * currently running this leads to different outcomes on differnt runs,
   there are some races/unsyncronized things left, to be investigated.
 * I suggest to make Subsystems joinable, this prolly needs some work in
   the error handling department (thread-wrapper.hpp too)
 * using nonrecursive/waitable lock, recursive locks are have some bad
   taste unless absolutely necessary
 * after all a timed lock with polling is not the right approach to check
   for subsystem shutdowns, I opted against thread cancelation because of
   its programming overhead and complexity. We may refine this and allow
   synchronous cancellation (with an approbiate thread flag) in some cases.
2010-01-23 06:57:15 +01:00
18c357eb4a start using Symbol datatype instead of a disguised char* 2009-10-11 05:57:38 +02:00
ad6d5cc7ef improve and steamline the subsystem testcases 2009-09-29 02:39:48 +02:00
3b1e2f00a8 rewrite simulated "subsystem". Hopefully closes Ticket #253
- clarify the meaning of run(true), run(fail), run(throw)
- do a real handshake between start() and the subsystem thread
- avoid accessing the SubsystenRunner after signalling termination
2009-09-29 02:38:07 +02:00
Christian Thaeter
f73cc47da6 Fix all things which broke compilation with NoBug 200909.1 2009-09-04 08:53:03 +02:00
5ebd0dcf5a WIP fix namespace 2009-02-01 01:01:44 +01:00
Christian Thaeter
bb8ad9fbd5 move threads back into the backend 2009-01-16 02:18:58 +01:00
5f22118ff5 trying to make two threading related tests more robust...
(TODO the real solution would be to actively sync on termination)
2009-01-11 12:25:44 +01:00
ba9b72bce4 Fixes after merge 2009-01-10 21:35:43 +01:00
5df4aee966 circumvent false alarm in SubsystemRunner_test due to timing problems 2009-01-10 18:20:04 +01:00
f75bb233ba fix warnings and problems detected by gcc 4.3 / Lenny 2009-01-10 17:01:09 +00:00
b6fb135398 change error notification at subsystem shutdown to use just a string*
(this allows to memoize the error message and call the termination
handler outside the catch block)
2009-01-10 16:15:17 +01:00
edb01ec8c6 Integration: Thread/sync, GUI-Plugin invoked in separate thread 2009-01-03 16:05:04 +01:00
683e1dabe1 cleanup, add further testcase (starting prerequisite subsystems)
SubsystemRunner considered finished.
2009-01-03 13:32:24 +01:00
f90238dba4 chased two bugs... 2009-01-03 04:29:59 +01:00
762a108dff cover more testcases (starting several subsystems) 2009-01-03 01:11:21 +01:00
eac43b80d6 cover simple testcase of starting just one subsystem 2009-01-02 10:57:13 +01:00
2f34637088 wire in the new threads implementation from backend... 2008-12-31 06:56:31 +01:00
41d5ee0973 a "mock subsystem" for testing the subsystemrunner 2008-12-31 05:06:17 +01:00