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

Method processingThread

plugins/vst_base/RemoteVstPlugin.cpp:1970–2004  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1968
1969
1970DWORD WINAPI RemoteVstPlugin::processingThread( LPVOID _param )
1971{
1972 __processingThreadId = GetCurrentThreadId();
1973
1974 RemoteVstPlugin * _this = static_cast<RemoteVstPlugin *>( _param );
1975
1976 RemotePluginClient::message m;
1977 while( ( m = _this->receiveMessage() ).id != IdQuit )
1978 {
1979 if( m.id == IdStartProcessing
1980 || m.id == IdMidiEvent
1981 || m.id == IdVstSetParameter
1982 || m.id == IdVstSetTempo )
1983 {
1984 _this->processMessage( m );
1985 }
1986 else if( m.id == IdChangeSharedMemoryKey )
1987 {
1988 _this->processMessage( m );
1989 _this->setShmIsValid( true );
1990 }
1991 else
1992 {
1993 PostMessage( __MessageHwnd,
1994 WM_USER,
1995 ProcessPluginMessage,
1996 (LPARAM) new message( m ) );
1997 }
1998 }
1999
2000 // notify GUI thread about shutdown
2001 PostMessage( __MessageHwnd, WM_USER, ClosePlugin, 0 );
2002
2003 return 0;
2004}
2005
2006
2007

Callers

nothing calls this directly

Calls 3

receiveMessageMethod · 0.80
setShmIsValidMethod · 0.80
processMessageMethod · 0.45

Tested by

no test coverage detected