From 0b944c88bb7f6947d57efd7a30907e64c14e93ee Mon Sep 17 00:00:00 2001 From: Bartosz Taudul Date: Mon, 12 Aug 2019 17:01:01 +0200 Subject: [PATCH] Add a note about condition variables. --- manual/tracy.tex | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/manual/tracy.tex b/manual/tracy.tex index 62590ad9..4031c665 100644 --- a/manual/tracy.tex +++ b/manual/tracy.tex @@ -738,6 +738,14 @@ To mark the location of a lock being held, use the \texttt{LockMark(varname)} ma Similarly, you can use \texttt{TracySharedLockable}, \texttt{TracySharedLockableN} and \texttt{SharedLockableBase} to mark locks implementing the SharedMutex requirement\footnote{\url{https://en.cppreference.com/w/cpp/named_req/SharedMutex}}. Note that while there's no support for timed mutices in Tracy, both \texttt{std::shared\_mutex} and \texttt{std::shared\_timed\_mutex} may be used\footnote{Since \texttt{std::shared\_mutex} was added in C++17, using \texttt{std::shared\_timed\_mutex} is the only way to have shared mutex functionality in C++14.}. +\begin{bclogo}[ +noborder=true, +couleur=black!5, +logo=\bclampe +]{Condition variables} +The standard \texttt{std::condition\_variable} is only able to accept \texttt{std::mutex} locks. To be able to use Tracy lock wrapper, use \texttt{std::condition\_variable\_any} instead. +\end{bclogo} + \begin{bclogo}[ noborder=true, couleur=black!5,