The VFLib looks very good and i'm now looking into trying the CallQueues in the concurrent module. I'm building an AU/VST plugin on Xcode 4.6.3 with base sdk 10.7. I've copied the VFLib next to the Source, JuceLibraryCode etc. directories in my project tree. I've also added vf_core and vf_concurrent sources to the project. The project builds, but i get a leak assertion failure when i close a debug session i.e. unload the plugin. The leaked object is "Thread". This happens regardless of whether i inherit ManualCallQueue in my AudioProcessor or use it as a member variable. Actually i'm not even doing anything with the queue yet. Simply calling close in the destructor of my AudioProcess class. What could be going wrong here?
*** Leaked objects detected: 1 instance(s) of class Thread JUCE Assertion failure in juce_LeakedObjectDetector.h:98
I've tried enabling boost, but that ended up in linker errors. I built and installed boost in terminal using the included scripts. I have the library and header search paths in the project settings. Are there any further steps i should take to make VFLib build with boost enabled? Could this fix the leaked object problem?
"boost::detail::get_tss_data(void const*)", referenced from: Boost::thread_specific_ptr<vf::FifoFreeStoreWithTLS::PerThreadData>::get() const in vf_concurrent.o "boost::detail::set_tss_data(void const*, boost::shared_ptr<boost::detail::tss_cleanup_function>, void*, bool)", referenced from: Boost::thread_specific_ptr<vf::FifoFreeStoreWithTLS::PerThreadData>::reset(vf::FifoFreeStoreWithTLS::PerThreadData*) in vf_concurrent.o Boost::thread_specific_ptr<vf::FifoFreeStoreWithTLS::PerThreadData>::~thread_specific_ptr() in vf_concurrent.o Symbol(s) not found for architecture x86_64 Linker command failed with exit code 1 (use -v to see invocation)