| 132 | |
| 133 | |
| 134 | void AudioDevice::stopProcessingThread( QThread * thread ) |
| 135 | { |
| 136 | if( !thread->wait( 30000 ) ) |
| 137 | { |
| 138 | fprintf( stderr, "Terminating audio device thread\n" ); |
| 139 | thread->terminate(); |
| 140 | if( !thread->wait( 1000 ) ) |
| 141 | { |
| 142 | fprintf( stderr, "Thread not terminated yet\n" ); |
| 143 | } |
| 144 | } |
| 145 | } |
| 146 | |
| 147 | |
| 148 |