version 3.6.0
another fixes in PIEthernet remove PIThread::interrupt() piwaitevent patches
This commit is contained in:
@@ -600,26 +600,6 @@ void PIThread::stopAndWait(int timeout_ms) {
|
||||
}
|
||||
|
||||
|
||||
#ifdef WINDOWS
|
||||
NTAPI void winThreadAPC(ULONG_PTR) {
|
||||
//piCout << "APC";
|
||||
}
|
||||
#endif
|
||||
|
||||
void PIThread::interrupt() {
|
||||
if (PRIVATE->thread == 0) return;
|
||||
piCout << "PIThread::interrupt";
|
||||
#ifdef WINDOWS
|
||||
CancelSynchronousIo(PRIVATE->thread);
|
||||
QueueUserAPC(winThreadAPC, PRIVATE->thread, 0);
|
||||
#else
|
||||
# ifdef POSIX_SIGNALS
|
||||
pthread_kill(PRIVATE->thread, PIP_INTERRUPT_SIGNAL);
|
||||
# endif
|
||||
#endif
|
||||
}
|
||||
|
||||
|
||||
void PIThread::stop() {
|
||||
//PICout(PICoutManipulators::DefaultControls) << "thread" << this << "stop ..." << running_ << wait;
|
||||
terminating = true;
|
||||
|
||||
Reference in New Issue
Block a user