Thread: SetEvent() and ResetEvent()?

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Guest Sebastiani's Avatar
    Join Date
    Aug 2001
    Location
    Waterloo, Texas
    Posts
    5,708
    also, you might have better figuring out luck finding out the reasoning behind that snippet of code by simply going to the source - wherever CreateEvent and WaitForXXX are called. my guess is that the relevent code between was removed while the synchronization code remained (as a placeholder or simply because it was overlooked). who knows though, really.
    Code:
    #include <cmath>
    #include <complex>
    bool euler_flip(bool value)
    {
        return std::pow
        (
            std::complex<float>(std::exp(1.0)), 
            std::complex<float>(0, 1) 
            * std::complex<float>(std::atan(1.0)
            *(1 << (value + 2)))
        ).real() < 0;
    }

  2. #2
    and the hat of sweating
    Join Date
    Aug 2007
    Location
    Toronto, ON
    Posts
    3,545
    Quote Originally Posted by Sebastiani View Post
    also, you might have better figuring out luck finding out the reasoning behind that snippet of code by simply going to the source - wherever CreateEvent and WaitForXXX are called. my guess is that the relevent code between was removed while the synchronization code remained (as a placeholder or simply because it was overlooked). who knows though, really.
    With spagetti code like this, my bets are on "overlooked".

Popular pages Recent additions subscribe to a feed