FogBugz (Case [Issue]20160) Kernel - Process terminate and suspend should prevent call from same current process

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

FogBugz (Case [Issue]20160) Kernel - Process terminate and suspend should prevent call from same current process

Pharo Issue Tracker
FogBugz Notification
avatar
Enhancement in Project:  Kernel: 1. Pharo Image  •  You are subscribed to this case
Here is my usercase:
When I implement some process management logic in application I very often do mistake when process termination is called from same process which means that rest logic (after #terminate call) is never executed. It is always tricky to find such cases and realize what the reason of bad concurrent behaviour.

I suggest to guard such case in #terminate and #suspend methods (same logic for suspend). So when #terminate is called on process which is currently executed error will be signalled.
And we can provide explicit methods in addition like #terminateFromItself and suspendFromItself for the cases when it is really needed
Priority Priority: 5 – Fix If Time Status Status: Work Needed
Assigned To Assigned to: Everyone Milestone Milestone: Pharo7.0

Go to Case
No longer need updates? Unsubscribe from this case.

Don't want FogBugz notifications anymore? Update your preferences.

FogBugz

_______________________________________________
Pharo-bugtracker mailing list
[hidden email]
https://lists.gforge.inria.fr/mailman/listinfo/pharo-bugtracker