diff options
author | Rickard Green <[email protected]> | 2010-12-11 08:35:33 +0100 |
---|---|---|
committer | Rickard Green <[email protected]> | 2010-12-16 12:38:55 +0100 |
commit | 55251749b99ae51ce12c5dff2ac06ca5ceb02120 (patch) | |
tree | aa9a1278f40dff5dcf4b2aba1b493fab653802a4 /erts/lib_src/common/ethr_aux.c | |
parent | dc122c3a919a2b2fb3ff1f02591ff1872de1c996 (diff) | |
download | otp-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.c | 4 |
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) |