mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* signal.c: change rb_atomic_t definition from uchar to uint.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30352 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
9b0f2e48d7
commit
47a1cd1291
2 changed files with 5 additions and 1 deletions
|
@ -1,3 +1,7 @@
|
|||
Sat Dec 25 16:08:06 2010 KOSAKI Motohiro <kosaki.motohiro@gmail.com>
|
||||
|
||||
* signal.c: change rb_atomic_t definition from uchar to uint.
|
||||
|
||||
Sat Dec 25 15:04:05 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||
|
||||
* test/csv/test_encodings.rb (TestEncodings#setup): fix evil test
|
||||
|
|
2
signal.c
2
signal.c
|
@ -30,7 +30,7 @@ typedef LONG rb_atomic_t;
|
|||
* has its own pseudo-insns to support them. See info, or
|
||||
* http://gcc.gnu.org/onlinedocs/gcc/Atomic-Builtins.html */
|
||||
|
||||
typedef unsigned char rb_atomic_t; /* Anything OK */
|
||||
typedef unsigned int rb_atomic_t; /* Anything OK */
|
||||
# define ATOMIC_TEST(var) __sync_lock_test_and_set(&(var), 0)
|
||||
# define ATOMIC_SET(var, val) __sync_lock_test_and_set(&(var), (val))
|
||||
# define ATOMIC_INC(var) __sync_fetch_and_add(&(var), 1)
|
||||
|
|
Loading…
Reference in a new issue