Safe to mix Pthread and JUCE?


#1

Hi,

I want to encapsulate a C library that creates few POSIX pthread in a C++ class to use it with JUCE. Is it safe to mix JUCE’s synchronisation objects (critical section and mutexes) and such threads ?


#2

Yes, totally safe - JUCE uses pthreads internally anyway, so it’s all doing the same thing.


#3

Thanks for the information. Nothing prevents me from using JUCE now : “Hello world !”.