Jump to content




Peripheral call dropping events


4 replies to this topic

#1 p3p

  • Members
  • 5 posts

Posted 13 April 2015 - 11:42 PM

I'm writing a basic device manager that loads a driver for any peripheral that is attached or gets attached to a computer, this part works well, the issue I'm having is that events seem to be dropped during the peripheral call method, specifically I'm using a timer event to mediate my kernel execution and it disappears, I'm curious if this is by design, (like sleep ect) or if I'm being stupid.

#2 HPWebcamAble

  • Members
  • 933 posts
  • LocationWeb Development

Posted 13 April 2015 - 11:47 PM

Can you post your code? You can put it on pastebin and put a link here if its more than a few hundred lines

Edited by HPWebcamAble, 13 April 2015 - 11:47 PM.


#3 Bomb Bloke

    Hobbyist Coder

  • Moderators
  • 7,099 posts
  • LocationTasmania (AU)

Posted 13 April 2015 - 11:50 PM

It's by design, but it's by the design of whoever created the peripheral. Not all peripheral calls do it.

#4 p3p

  • Members
  • 5 posts

Posted 14 April 2015 - 12:33 AM

Ah that's disappointing not sure how to work around events randomly dropping

#5 Bomb Bloke

    Hobbyist Coder

  • Moderators
  • 7,099 posts
  • LocationTasmania (AU)

Posted 14 April 2015 - 01:52 AM

The parallel API is the way to go in this sort of situation. This thread has an example of the sort of code you'd use.





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users