Module Name: src
Committed By: riastradh
Date: Tue Mar 4 00:40:42 UTC 2025
Modified Files:
src/common/lib/libc/atomic: atomic_op_namespace.h
Log Message:
libc atomic_op_namespace.h: Add membar_release and membar_acquire.
These namespace macros will be needed so that libpthread can call
NetBSD's nonstandard membar_release/acquire functions even if linked
against an application that defines symbols of the same name.
Preparation for:
PR lib/59126: pthread_once(3): missing memory ordering
To generate a diff of this commit:
cvs rdiff -u -r1.7 -r1.8 src/common/lib/libc/atomic/atomic_op_namespace.h
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/common/lib/libc/atomic/atomic_op_namespace.h
diff -u src/common/lib/libc/atomic/atomic_op_namespace.h:1.7 src/common/lib/libc/atomic/atomic_op_namespace.h:1.8
--- src/common/lib/libc/atomic/atomic_op_namespace.h:1.7 Mon Oct 13 07:31:12 2014
+++ src/common/lib/libc/atomic/atomic_op_namespace.h Tue Mar 4 00:40:42 2025
@@ -1,4 +1,4 @@
-/* $NetBSD: atomic_op_namespace.h,v 1.7 2014/10/13 07:31:12 martin Exp $ */
+/* $NetBSD: atomic_op_namespace.h,v 1.8 2025/03/04 00:40:42 riastradh Exp $ */
/*-
* Copyright (c) 2007, 2008 The NetBSD Foundation, Inc.
@@ -112,6 +112,8 @@
#define atomic_inc_ptr_nv _atomic_inc_ptr_nv
#define atomic_inc_64_nv _atomic_inc_64_nv
+#define membar_acquire _membar_acquire
+#define membar_release _membar_release
#define membar_enter _membar_enter
#define membar_exit _membar_exit
#define membar_producer _membar_producer