aboutsummaryrefslogtreecommitdiffstats
path: root/erts/lib_src/common/ethr_aux.c
diff options
context:
space:
mode:
authorRickard Green <[email protected]>2010-12-11 08:35:33 +0100
committerRickard Green <[email protected]>2010-12-16 12:38:55 +0100
commit55251749b99ae51ce12c5dff2ac06ca5ceb02120 (patch)
treeaa9a1278f40dff5dcf4b2aba1b493fab653802a4 /erts/lib_src/common/ethr_aux.c
parentdc122c3a919a2b2fb3ff1f02591ff1872de1c996 (diff)
downloadotp-55251749b99ae51ce12c5dff2ac06ca5ceb02120.tar.gz
otp-55251749b99ae51ce12c5dff2ac06ca5ceb02120.tar.bz2
otp-55251749b99ae51ce12c5dff2ac06ca5ceb02120.zip
Use 32-bit atomic for uaflgs in thread specific events
Diffstat (limited to 'erts/lib_src/common/ethr_aux.c')
-rw-r--r--erts/lib_src/common/ethr_aux.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/erts/lib_src/common/ethr_aux.c b/erts/lib_src/common/ethr_aux.c
index cc58630923..2c3e25a805 100644
--- a/erts/lib_src/common/ethr_aux.c
+++ b/erts/lib_src/common/ethr_aux.c
@@ -285,10 +285,10 @@ static ethr_ts_event *ts_event_pool(int size, ethr_ts_event **endpp)
+ ETHR_CACHE_LINE_SIZE));
for (i = 1; i < size; i++) {
atsev[i-1].ts_ev.next = &atsev[i].ts_ev;
- ethr_atomic_init(&atsev[i-1].ts_ev.uaflgs, 0);
+ ethr_atomic32_init(&atsev[i-1].ts_ev.uaflgs, 0);
atsev[i-1].ts_ev.iflgs = 0;
}
- ethr_atomic_init(&atsev[size-1].ts_ev.uaflgs, 0);
+ ethr_atomic32_init(&atsev[size-1].ts_ev.uaflgs, 0);
atsev[size-1].ts_ev.iflgs = 0;
atsev[size-1].ts_ev.next = NULL;
if (endpp)