mirror of
https://github.com/ruby/ruby.git
synced 2025-08-15 13:39:04 +02:00
ruby_atomic.h: atomic VALUE operations
* ruby_atomic.h (ATOMIC_VALUE_EXCHANGE, ATOMIC_VALUE_CAS): add atomic operations for VALUE. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@51498 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
ff7eb4c656
commit
ec10c033a7
5 changed files with 76 additions and 12 deletions
2
eval.c
2
eval.c
|
@ -200,7 +200,7 @@ ruby_cleanup(volatile int ex)
|
|||
|
||||
state = 0;
|
||||
for (nerr = 0; nerr < numberof(errs); ++nerr) {
|
||||
VALUE err = ATOMIC_SIZE_EXCHANGE(errs[nerr], Qnil);
|
||||
VALUE err = ATOMIC_VALUE_EXCHANGE(errs[nerr], Qnil);
|
||||
|
||||
if (!RTEST(err)) continue;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue