MCPcopy Create free account
hub / github.com/LMMS/lmms / stopProcessingThread

Method stopProcessingThread

src/core/audio/AudioDevice.cpp:134–145  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

132
133
134void 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

Callers

nothing calls this directly

Calls 1

waitMethod · 0.45

Tested by

no test coverage detected