bool AndroidIOIOUartPort::StopRxThread() { // Make sure the thread isn't terminating itself assert(!Thread::IsInside()); // If the thread is not running, cancel the rest of the function if (!Thread::IsDefined()) { return true; } BeginStop(); Thread::Join(); return true; }
bool TTYPort::StopRxThread() { // Make sure the thread isn't terminating itself assert(!Thread::IsInside()); assert(fd >= 0); // If the thread is not running, cancel the rest of the function if (!Thread::IsDefined()) return true; BeginStop(); Thread::Join(); return true; }
bool AndroidBluetoothPort::StopRxThread() { // Make sure the thread isn't terminating itself assert(!Thread::IsInside()); if (helper == NULL) return false; // If the thread is not running, cancel the rest of the function if (!Thread::IsDefined()) return true; BeginStop(); Thread::Join(); return true; }
bool TCPPort::StopRxThread() { // Make sure the thread isn't terminating itself assert(!Thread::IsInside()); // Make sure the port is still open if (listener_fd < 0) return false; // If the thread is not running, cancel the rest of the function if (!Thread::IsDefined()) return true; BeginStop(); Thread::Join(); return true; }