git-svn-id: svn://db.shs.com.ru/pip@646 12ceb7fc-bf1f-11e4-8940-5bc7170c53b5
This commit is contained in:
@@ -939,6 +939,10 @@ PIConnection::DevicePool::DevicePool(): PIThread(false, 10) {
|
||||
}
|
||||
|
||||
|
||||
PIConnection::DevicePool::~DevicePool() {
|
||||
}
|
||||
|
||||
|
||||
void PIConnection::DevicePool::init() {
|
||||
if (!isRunning())
|
||||
start(10);
|
||||
@@ -1088,14 +1092,12 @@ PIVector<PIIODevice * > PIConnection::DevicePool::boundedDevices(const PIConnect
|
||||
|
||||
|
||||
PIConnection::DevicePool::DeviceData::~DeviceData() {
|
||||
if (rthread != 0) {
|
||||
rthread->stop();
|
||||
if (!rthread->waitForFinish(1000))
|
||||
rthread->terminate();
|
||||
if (rthread) {
|
||||
rthread->terminate();
|
||||
delete rthread;
|
||||
rthread = 0;
|
||||
}
|
||||
if (dev != 0) {
|
||||
if (dev) {
|
||||
dev->close();
|
||||
delete dev;
|
||||
dev = 0;
|
||||
|
||||
Reference in New Issue
Block a user