//------------------------------------------------------------------------------ /** @file ThreadCpp.cpp @brief Implementacije metoda apstraktne klase niti. */ //------------------------------------------------------------------------------ #include "ThreadCpp.h" //------------------------------------------------------------------------------ using namespace std; //------------------------------------------------------------------------------ void* ThreadCpp::starter(void* thread) { ThreadCpp* t = (ThreadCpp*) thread; if (t != 0) { t->run(); } pthread_exit(0); return 0; } //------------------------------------------------------------------------------ void ThreadCpp::start() { pthread_create(&tid, 0, &starter, this); } //------------------------------------------------------------------------------