Swap Boost.Container's small_vector out for LLVM's

This implementation misses a shrink to fit function, but reassigning the
vector with a fresh one should be equivalent.
This commit is contained in:
Robbert van der Helm
2022-04-14 23:31:14 +02:00
parent fd25010aca
commit b2a15620f3
18 changed files with 1601 additions and 97 deletions
+1 -1
View File
@@ -196,7 +196,7 @@ class Vst2PluginBridge : PluginBridge<Vst2Sockets<std::jthread>> {
* we receive so we can send them to host on the audio thread at the end of
* `process_replacing()`.
*/
boost::container::small_vector<DynamicVstEvents, 1> incoming_midi_events_;
llvm::SmallVector<DynamicVstEvents, 1> incoming_midi_events_;
/**
* Mutex for locking the above event queue, since recieving and processing
* now happens in two different threads.
+2
View File
@@ -12,6 +12,7 @@ vst2_plugin_sources = files(
'../common/plugins.cpp',
'../common/process.cpp',
'../common/utils.cpp',
'../include/llvm/small-vector.cpp',
'bridges/vst2.cpp',
'host-process.cpp',
'utils.cpp',
@@ -82,6 +83,7 @@ vst3_plugin_sources = files(
'../common/plugins.cpp',
'../common/process.cpp',
'../common/utils.cpp',
'../include/llvm/small-vector.cpp',
'bridges/vst3.cpp',
'bridges/vst3-impls/plugin-factory-proxy.cpp',
'bridges/vst3-impls/plug-view-proxy.cpp',