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. SetEvent for thread

SetEvent for thread

Scheduled Pinned Locked Moved C / C++ / MFC
questionhelp
3 Posts 2 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.
  • M Offline
    M Offline
    meirav
    wrote on last edited by
    #1

    Hi, I need to set an event for my thread every 100 miliseond automatcly -( after it's running i am doing ResetEvent and need to wait again for the event to happen) how can i do that ??? I am quiet sure that there is somthing for that and it would be a great help. Thanks :)

    T 1 Reply Last reply
    0
    • M meirav

      Hi, I need to set an event for my thread every 100 miliseond automatcly -( after it's running i am doing ResetEvent and need to wait again for the event to happen) how can i do that ??? I am quiet sure that there is somthing for that and it would be a great help. Thanks :)

      T Offline
      T Offline
      Tim Smith
      wrote on last edited by
      #2

      If you are running on NT/W2K/XP/98/ME, you can use a waitable timer (CreateWaitableTimer). Tim Smith I know what you're thinking punk, you're thinking did he spell check this document? Well, to tell you the truth I kinda forgot myself in all this excitement. But being this here's CodeProject, the most powerful forums in the world and would blow your head clean off, you've got to ask yourself one question, Do I feel lucky? Well do ya punk?

      M 1 Reply Last reply
      0
      • T Tim Smith

        If you are running on NT/W2K/XP/98/ME, you can use a waitable timer (CreateWaitableTimer). Tim Smith I know what you're thinking punk, you're thinking did he spell check this document? Well, to tell you the truth I kinda forgot myself in all this excitement. But being this here's CodeProject, the most powerful forums in the world and would blow your head clean off, you've got to ask yourself one question, Do I feel lucky? Well do ya punk?

        M Offline
        M Offline
        meirav
        wrote on last edited by
        #3

        Hello Tim, Thank you for your answer , I looked at this function and still didn't understand how to do that ( Set an Event automaticly every 100 milisecond), I will appriciate if you can specify more or send me an example. Bye :)

        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