Use of Escape to cancel USB transfers
Jeffrey Lee (213) 6048 posts |
What are people’s thoughts on this? At the moment Escape can be used to break out of the tsleep() function, which should have the affect of aborting any wait condition and returning control to the user. Except:
So can anyone offer any compelling reason why we should allow Escape to cancel calls to tsleep()? As far as I can tell all it will do is cause us trouble, or have no beneficial effect whatsoever if the user is running ordinary programs in the Wimp. At the least, if we are going to allow it, we should really follow the lead of something like ShareFS, which (IIRC) waits for a few seconds and then shows the hourglass and starts checking for Escape. Also I suspect we should probably look into whatever went wrong in the SCSI stack, to work out what it thought went wrong and why it failed to recover the drive (or failed to dismount it properly if it thought the drive was completely broken) |
Dave Higton (281) 668 posts |
When I read the thread’s title, my first thought was that you were thinking of adding the ability to use Escape to cancel transfers, and my immediate thought was that that would cause chaos. I couldn’t see how it could be made to work. I agree with all your misgivings, and I think the Escape cancel mechanism should be removed. |
Uwe Kall (215) 120 posts |
I think that looks like early debugging functionality and should be removed. |
Jeffrey Lee (213) 6048 posts |
A few days ago I finally checked in some changes to get rid of the code which allows USB transfers to be cancelled via Escape. I suppose if we really did want the ability to cancel transfers via Escape, then it should be a flag that gets set on a per-transfer/per-pipe basis, instead of just a global thing like it was originally. |