[PATCH 2/5] toolsoftrade: Add arguments in 'WRITE_ONCE()' example

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



A sentence explaining common things between 'READ_ONCE()' and
'__atomic_load_n()' provides arguments, but the explanation for
'WRITE_ONCE()' doesn't.  This commit makes it also consistently provides
the arguments.

Signed-off-by: SeongJae Park <sj38.park@xxxxxxxxx>
---
 toolsoftrade/toolsoftrade.tex | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/toolsoftrade/toolsoftrade.tex b/toolsoftrade/toolsoftrade.tex
index b2694da2..bc332aba 100644
--- a/toolsoftrade/toolsoftrade.tex
+++ b/toolsoftrade/toolsoftrade.tex
@@ -544,7 +544,7 @@ primitives.
 	\cref{chp:Advanced Synchronization: Memory Ordering}.
 	In the meantime, \co{READ_ONCE(x)} has much in common with
 	the \GCC\  intrinsic \co{__atomic_load_n(&x, __ATOMIC_RELAXED)}
-	and \co{WRITE_ONCE()} has much in common with the \GCC\ 
+	and \co{WRITE_ONCE(x, v)} has much in common with the \GCC\
 	intrinsic \co{__atomic_store_n(&x, v, __ATOMIC_RELAXED)}.
 }\QuickQuizEndE
 }
-- 
2.17.1




[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Linux NFS]     [Linux NILFS]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux