generic Timeout code

Discussion in 'C++' started by Alex, Apr 12, 2009.

  1. Alex

    Alex New Member

    Joined:
    Oct 1, 2006
    Messages:
    22
    Likes Received:
    0
    Trophy Points:
    0
    Hi,
    I wanted to write some generic timeout code in C++ which once object
    is created can throw a exception after the time expires. I am able to
    implement it with signal handlers (using SIGPROF) in C, but as I will
    not be able to throw any exceptions, we used siglongjmp from the
    signal handler. The problem with that is we have memory leaks as none
     

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice