Menu

longjmp

2001-04-27
2001-05-01
  • Peter Dotchev

    Peter Dotchev - 2001-04-27

    here is an excerpt from MSDN:
    "Be careful when using setjmp and longjmp in C++ programs. Because these functions do not support C++ object semantics, it is safer to use the C++ exception-handling mechanism."

    it seems that local objects are not destroyed properly
    and Thread class does make use of longjmp()

     
    • David Sugar

      David Sugar - 2001-05-01

      Thread makes use of longjump only to handle the one special situation where a thread is exited from it's Run method by calling Exit() implicitly.

       

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.