Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. Call Class Members from Interrupt Routine

Call Class Members from Interrupt Routine

Scheduled Pinned Locked Moved C / C++ / MFC
c++help
21 Posts 6 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • A Andy202

    A timing message needs to go out every 20 msec, thats why I wanted to use this interrupt facility on the PCI card. Most other data goes out at 100 msec or 300 msec, which wold be OK for Windows timers. I may be wrong but is not Windows limited to 55 msec accuracy? So do you think that this solution is poor? Andy

    L Offline
    L Offline
    Lost User
    wrote on last edited by
    #21

    Windows timer resuloution is about 10 ms, so if you want a timer at 20 you can do ith with the windows timer. Less than this you have to go to specific HW, or, on later windows OSs, apparently you can change the timer, but it is apparently illadvised. So yes, your solution will incur a performance hit because of the kernel to user transition. I took over a sw and driver design once that wrote data byte by byte to a RAM pack. It took 30 seconds to fill the thing with data. I changed it to writing 2 k packets at a time. It too 250 ms to fill it with data. Thats the cost of switching form user to kernel to user every byte, as oposed to evert 2k bytes. Heavy eh?

    ============================== Nothing to say.

    1 Reply Last reply
    0
    Reply
    • Reply as topic
    Log in to reply
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes


    • Login

    • Don't have an account? Register

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • World
    • Users
    • Groups