| 79 | } |
| 80 | |
| 81 | bool |
| 82 | PluginMemory::alloc(size_t nBytes) |
| 83 | { |
| 84 | QMutexLocker l(&_imp->mutex); |
| 85 | |
| 86 | if (_imp->locked) { |
| 87 | return false; |
| 88 | } else { |
| 89 | _imp->data.resize(nBytes); |
| 90 | EffectInstancePtr e = _imp->effect.lock(); |
| 91 | if (e) { |
| 92 | e->registerPluginMemory( _imp->data.size() ); |
| 93 | } |
| 94 | |
| 95 | return true; |
| 96 | } |
| 97 | } |
| 98 | |
| 99 | void |
| 100 | PluginMemory::freeMem() |
nothing calls this directly
no test coverage detected