aboutsummaryrefslogtreecommitdiff
path: root/lib/libspl/include/atomic.h
diff options
context:
space:
mode:
Diffstat (limited to 'lib/libspl/include/atomic.h')
-rw-r--r--lib/libspl/include/atomic.h9
1 files changed, 8 insertions, 1 deletions
diff --git a/lib/libspl/include/atomic.h b/lib/libspl/include/atomic.h
index 8dd1d654a486..4ebdbbda9864 100644
--- a/lib/libspl/include/atomic.h
+++ b/lib/libspl/include/atomic.h
@@ -6,7 +6,7 @@
* You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
- * or http://www.opensolaris.org/os/licensing.
+ * or https://opensource.org/licenses/CDDL-1.0.
* See the License for the specific language governing permissions
* and limitations under the License.
*
@@ -314,6 +314,13 @@ extern void membar_enter(void);
extern void membar_exit(void);
/*
+ * Make all stores and loads emitted prior to the the barrier complete before
+ * crossing it, while also making sure stores and loads emitted after the
+ * barrier only start being executed after crossing it.
+ */
+extern void membar_sync(void);
+
+/*
* Arrange that all stores issued before this point in the code reach
* global visibility before any stores that follow; useful in producer
* modules that update a data item, then set a flag that it is available.