Skip to content

Commit

Permalink
slides/kernel-driver-development-concurrency: fix description of mute…
Browse files Browse the repository at this point in the history
…x_trylock()

Our description was unclear, and actually inverted.

Reported-by: Jorand Kévin <[email protected]>
Signed-off-by: Thomas Petazzoni <[email protected]>
  • Loading branch information
tpetazzoni committed Apr 19, 2024
1 parent 419c3c1 commit aa346b1
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -83,8 +83,8 @@ \section{Concurrent Access to Resources: Locking}
\begin{itemize}
\item \mint{c}+int mutex_trylock(struct mutex *lock);+
\begin{itemize}
\item Never waits. Returns a non zero value if the mutex is not
available.
\item Never waits. Returns 1 if the mutex has been acquired
successfully, and 0 if the mutex was not available.
\end{itemize}
\item \mint{c}+int mutex_is_locked(struct mutex *lock);+
\begin{itemize}
Expand Down

0 comments on commit aa346b1

Please sign in to comment.