![]() ![]() Void CreateThread() throw(CThreadException) ![]() * Thread functionality Pure virtual function, it will be re implemented in derived classes Virtual const char* what() const throw () * is in posession of the \c Exception object. ** Returns a pointer to the (constant) error description. * should be postfixed to the user provided messageĬThreadException(const string &message, bool bSysMsg = false) throw() * bSysMsg true if system message (from strerror(errno)) * Construct a SocketException with a explanatory message. * Signals a problem with the thread handling.Ĭlass CThreadException: public std::exception In my last project I have created a wrapper for it. Writing a C++ wrapper for pthread (as in QT or Java) was always in my mind since when I started using it. ![]() It would be nice if POSIX thread (pthread) has similar method… isn’t it? In java It is very easy to use, simply extends the Thread class and overrides the n() method for its own implementation.Īlso in QT We derive a class from QThread and reimplement the run() method. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |