diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2015-02-27 03:55:00 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2015-02-27 03:55:00 +0000 |
commit | 194c39076965713f741070d9de9fcd2954a3962b (patch) | |
tree | 8a9f890ba3bdae6d54a9c74048cad0f8c919c603 /ext | |
parent | b84e28d13338c301c2264d9240ad467ad4f4216f (diff) | |
download | ruby-194c39076965713f741070d9de9fcd2954a3962b.tar.gz |
thread.c: refine enums
* ext/thread/thread.c: remove unnecessary enum values and add end
of enumerations.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@49766 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext')
-rw-r--r-- | ext/thread/thread.c | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/ext/thread/thread.c b/ext/thread/thread.c index b8656a1d97..de094acd91 100644 --- a/ext/thread/thread.c +++ b/ext/thread/thread.c @@ -1,14 +1,16 @@ #include <ruby.h> enum { - CONDVAR_WAITERS = 0 + CONDVAR_WAITERS, + END_CONDVAR }; enum { - QUEUE_QUE = 0, - QUEUE_WAITERS = 1, - SZQUEUE_WAITERS = 2, - SZQUEUE_MAX = 3 + QUEUE_QUE, + QUEUE_WAITERS, + SZQUEUE_WAITERS, + SZQUEUE_MAX, + END_QUEUE }; #define GET_CONDVAR_WAITERS(cv) get_array((cv), CONDVAR_WAITERS) |