Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions lectures/L21.tex
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,7 @@ \subsection*{Atomic Types}
\end{lstlisting}


The following functions are used to swap two values, only if the old value matches the expected (i.e., what was provided as the second argument):
The following functions are used to swap two values, that is, if the current value of *ptr is oldval, then write newval into *ptr:

\begin{lstlisting}[language=C]
bool __sync_bool_compare_and_swap( type *ptr, type oldval, type newval );
Expand Down Expand Up @@ -282,4 +282,4 @@ \subsection*{Atomic Types}

\input{bibliography.tex}

\end{document}
\end{document}