Well, I finally solved this. The solution is the use of a Julia’s AsyncCondition
(instead of a C++ std::condition_variable
), which seems to have been created to solve problems similar to mine: Calling C and Fortran Code · The Julia Language.
1 Like