Changeset 3684


Ignore:
Timestamp:
Aug 22, 2017, 5:57:14 AM (5 weeks ago)
Author:
peter
Message:

add a comment about calling Scheduler::wait in destructor and the problems it might cause

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/yat/utility/Scheduler.cc

    r3681 r3684  
    8383
    8484
     85        // This function (or interrupt) has to be called before Scheduler
     86        // goes out of scope, which triggers the idea to let destructor call
     87        // ::wait(). However, wait() might very well throw, and according to
     88        // this article
     89        // (http://bin-login.name/ftp/pub/docs/programming_languages/cpp/cffective_cpp/MAGAZINE/SU_FRAME.HTM#destruct)
     90        // from Herb Sutter basically saying that destructors that throw are
     91        // evil.
    8592        void Scheduler::wait(void)
    8693        {
Note: See TracChangeset for help on using the changeset viewer.