dcsimg
CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3

Thread: How to check if an event is signaled ?

  1. #1
    Join Date
    Dec 2005
    Posts
    445

    How to check if an event is signaled ?

    Hi all,

    Is there a better/other way to check if an event is signaled ?
    Code:
    if ( ::WaitForSingleObject(  m_spShutdownEvent, 0) == WAIT_OBJECT_0 )
    {
        // Signlaed
    }
    Thank you

  2. #2
    Join Date
    Nov 2003
    Posts
    1,902

    Re: How to check if an event is signaled ?

    Yes - that's how you check if an event is in a signaled at the time of the call.

    gg

  3. #3
    Join Date
    Dec 2005
    Posts
    445

    Re: How to check if an event is signaled ?

    Thanks Codeplug !

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


Windows Mobile Development Center


Click Here to Expand Forum to Full Width




On-Demand Webinars (sponsored)