Fix a bug which gets the worker stuck on semaphore
This commit is contained in:
parent
41dae2fe24
commit
5709fedb94
1 changed files with 4 additions and 2 deletions
|
|
@ -558,8 +558,10 @@ void SfizzVstProcessor::receiveMessage(int delay, const char* path, const char*
|
||||||
{
|
{
|
||||||
uint8_t* oscTemp = _oscTemp.get();
|
uint8_t* oscTemp = _oscTemp.get();
|
||||||
uint32_t oscSize = sfizz_prepare_message(oscTemp, kOscTempSize, path, sig, args);
|
uint32_t oscSize = sfizz_prepare_message(oscTemp, kOscTempSize, path, sig, args);
|
||||||
if (oscSize <= kOscTempSize)
|
if (oscSize <= kOscTempSize) {
|
||||||
writeWorkerMessage("ReceiveMessage", oscTemp, oscSize);
|
if (writeWorkerMessage("ReceiveMessage", oscTemp, oscSize))
|
||||||
|
_semaToWorker.post();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void SfizzVstProcessor::loadSfzFileOrDefault(sfz::Sfizz& synth, const std::string& filePath)
|
void SfizzVstProcessor::loadSfzFileOrDefault(sfz::Sfizz& synth, const std::string& filePath)
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue