MT#62181 obsolete thread cancellation

Unused.

Change-Id: I8d187dea14fcc7941054ab764f24f2fc544b2fa6
mr13.3.1
Richard Fuchs 2 years ago
parent 70ba23fbc0
commit 036ac6c3e6

@ -107,18 +107,6 @@ void AmThread::stop()
//pthread_cancel(_td);
}
void AmThread::cancel() {
lock_guard<AmMutex> _l(_m_td);
int res;
if ((res = pthread_cancel(_td)) != 0) {
ERROR("pthread_cancel failed with code %i\n", res);
} else {
DBG("Thread %lu is canceled.\n", (unsigned long int) _pid);
_stopped = true;
}
}
void AmThread::join()
{
if(!is_stopped())

@ -137,8 +137,6 @@ public:
bool is_stopped() { return _stopped; }
/** Wait for this thread to finish */
void join();
/** kill the thread (if pthread_setcancelstate(PTHREAD_CANCEL_ENABLED) has been set) **/
void cancel();
int setRealtime();
};

Loading…
Cancel
Save