Jump to content
IGNORED

Properly handling BREAK within CIO handler?


Recommended Posts

Depends on what the device does and whether you can be subject to hangs or unwanted long timeouts.

 

For a device doing external IO you'd probably want to be able to abort part way through a record read or write rather than waiting on a potentially long timeout.

S: checks it on each iteration e.g. per pixel when doing a line or fill, which is sort of overkill although a fill operation could be something that takes some time.

(though that said, the nature of internal handlers is that the PUT code doesn't necessarily know if it's doing a single operation only or one that's part of thousands)

 

Not sure if the OS portion of CIO checks it - might be worth looking at some source listings there.

 

Also, further down the line you have retry logic - a good example there is with DOS - pressing Break can sometimes interrupt an operation but often just causes a retry and multiple presses are needed to abort.

Edited by Rybags
Link to comment
Share on other sites

  • 2 weeks later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...