chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
string-util: rework memory_erase() to not use GCC optimize attribute (#3812)
[elogind.git]
/
src
/
basic
/
refcnt.h
diff --git
a/src/basic/refcnt.h
b/src/basic/refcnt.h
index 0502c20a2e50448028013341f150990f36e9d571..1d77a6445afa599aed07a61a80066473a90235e4 100644
(file)
--- a/
src/basic/refcnt.h
+++ b/
src/basic/refcnt.h
@@
-1,5
+1,3
@@
-/*-*- Mode: C; c-basic-offset: 8; indent-tabs-mode: nil -*-*/
-
#pragma once
/***
#pragma once
/***
@@
-21,7
+19,9
@@
along with systemd; If not, see <http://www.gnu.org/licenses/>.
***/
along with systemd; If not, see <http://www.gnu.org/licenses/>.
***/
-/* A type-safe atomic refcounter */
+/* A type-safe atomic refcounter.
+ *
+ * DO NOT USE THIS UNLESS YOU ACTUALLY CARE ABOUT THREAD SAFETY! */
typedef struct {
volatile unsigned _value;
typedef struct {
volatile unsigned _value;