| @@ -1,14 +1,14 @@ | | | @@ -1,14 +1,14 @@ |
1 | .\" $NetBSD: atomic_loadstore.9,v 1.5 2019/12/08 00:00:59 uwe Exp $ | | 1 | .\" $NetBSD: atomic_loadstore.9,v 1.6 2020/09/03 00:23:57 riastradh Exp $ |
2 | .\" | | 2 | .\" |
3 | .\" Copyright (c) 2019 The NetBSD Foundation | | 3 | .\" Copyright (c) 2019 The NetBSD Foundation |
4 | .\" All rights reserved. | | 4 | .\" All rights reserved. |
5 | .\" | | 5 | .\" |
6 | .\" This code is derived from software contributed to The NetBSD Foundation | | 6 | .\" This code is derived from software contributed to The NetBSD Foundation |
7 | .\" by Taylor R. Campbell. | | 7 | .\" by Taylor R. Campbell. |
8 | .\" | | 8 | .\" |
9 | .\" Redistribution and use in source and binary forms, with or without | | 9 | .\" Redistribution and use in source and binary forms, with or without |
10 | .\" modification, are permitted provided that the following conditions | | 10 | .\" modification, are permitted provided that the following conditions |
11 | .\" are met: | | 11 | .\" are met: |
12 | .\" 1. Redistributions of source code must retain the above copyright | | 12 | .\" 1. Redistributions of source code must retain the above copyright |
13 | .\" notice, this list of conditions and the following disclaimer. | | 13 | .\" notice, this list of conditions and the following disclaimer. |
14 | .\" 2. Redistributions in binary form must reproduce the above copyright | | 14 | .\" 2. Redistributions in binary form must reproduce the above copyright |
| @@ -756,27 +756,27 @@ or similar to enable resource reclamatio | | | @@ -756,27 +756,27 @@ or similar to enable resource reclamatio |
756 | get_snapshot(void) | | 756 | get_snapshot(void) |
757 | { | | 757 | { |
758 | return atomic_load_consume(¤t_d); | | 758 | return atomic_load_consume(¤t_d); |
759 | } | | 759 | } |
760 | .Ed | | 760 | .Ed |
761 | .Sh CODE REFERENCES | | 761 | .Sh CODE REFERENCES |
762 | .Pa sys/sys/atomic.h | | 762 | .Pa sys/sys/atomic.h |
763 | .Sh SEE ALSO | | 763 | .Sh SEE ALSO |
764 | .Xr atomic_ops 3 , | | 764 | .Xr atomic_ops 3 , |
765 | .Xr membar_ops 3 , | | 765 | .Xr membar_ops 3 , |
766 | .Xr pserialize 9 | | 766 | .Xr pserialize 9 |
767 | .Sh HISTORY | | 767 | .Sh HISTORY |
768 | These atomic operations first appeared in | | 768 | These atomic operations first appeared in |
769 | .Nx 10.0 . | | 769 | .Nx 9.0 . |
770 | .Sh CAVEATS | | 770 | .Sh CAVEATS |
771 | C11 formally specifies that all subexpressions, except the left | | 771 | C11 formally specifies that all subexpressions, except the left |
772 | operands of the | | 772 | operands of the |
773 | .Ql && , | | 773 | .Ql && , |
774 | .Ql || , | | 774 | .Ql || , |
775 | .Ql ?: , | | 775 | .Ql ?: , |
776 | and | | 776 | and |
777 | .Ql \&, | | 777 | .Ql \&, |
778 | operators and the | | 778 | operators and the |
779 | .Li kill_dependency() | | 779 | .Li kill_dependency() |
780 | macro, carry dependencies for which | | 780 | macro, carry dependencies for which |
781 | .Dv memory_order_consume | | 781 | .Dv memory_order_consume |
782 | guarantees ordering, but most or all implementations to date simply | | 782 | guarantees ordering, but most or all implementations to date simply |