MCPcopy Create free account
hub / github.com/LMMS/lmms / ~RemotePlugin

Method ~RemotePlugin

src/core/RemotePlugin.cpp:136–170  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

134
135
136RemotePlugin::~RemotePlugin()
137{
138 m_watcher.stop();
139 m_watcher.wait();
140
141 if( m_failed == false )
142 {
143 if( isRunning() )
144 {
145 lock();
146 sendMessage( IdQuit );
147
148 m_process.waitForFinished( 1000 );
149 if( m_process.state() != QProcess::NotRunning )
150 {
151 m_process.terminate();
152 m_process.kill();
153 }
154 unlock();
155 }
156
157#ifndef USE_QT_SHMEM
158 shmdt( m_shm );
159 shmctl( m_shmID, IPC_RMID, NULL );
160#endif
161 }
162
163#ifndef SYNC_WITH_SHM_FIFO
164 if ( close( m_server ) == -1)
165 {
166 qWarning( "Error freeing resources." );
167 }
168 remove( m_socketFile.toUtf8().constData() );
169#endif
170}
171
172
173

Callers

nothing calls this directly

Calls 7

isRunningFunction · 0.50
lockFunction · 0.50
unlockFunction · 0.50
stopMethod · 0.45
waitMethod · 0.45
stateMethod · 0.45
killMethod · 0.45

Tested by

no test coverage detected