dynare/dynare++/tl
Sébastien Villemot 3e5b4084b8
Dynare++: fix bug in new threading code
At the end of a thread, we must first notify the main thread waiting on the
condition variable, then unlock the mutex. We must do these two operations in
that order, otherwise there is a possibility of having the main process
destroying the condition variable before the thread tries to notify it (if all
other threads terminate at the same time and bring the counter down to zero).
For that reason, we cannot use std::notify_all_at_thread_exit().

Bug introduced in commit 752a02a36.
2019-02-02 09:05:02 +01:00
..
cc Dynare++: fix bug in new threading code 2019-02-02 09:05:02 +01:00
testing Dynare++: use C++11 threads (instead of POSIX threads API) 2019-01-28 18:44:24 +01:00
Makefile.am Dynare++: add tl.tex to distributed tarball 2019-01-31 12:11:28 +01:00
tl.tex Dynare++ tensor library: further notation fixes in documentation 2019-01-31 19:01:41 +01:00