[ruby-cvs:60576] normal:r53413 (trunk): thread_sync.c: remove unnecessary casts for queue_sleep
normal at ruby-lang.org
normal at ruby-lang.org
Sat Jan 2 21:08:35 JST 2016
normal 2016-01-02 21:08:34 +0900 (Sat, 02 Jan 2016)
New Revision: 53413
https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=53413
Log:
thread_sync.c: remove unnecessary casts for queue_sleep
"Qfalse" and "(VALUE)0" are equivalent, and do not matter
for an ignored argument, either.
Additionally, there's no reason to cast the pointer to
rb_thread_sleep_deadly when we already have a queue_sleep
wrapper.
* thread_sync.c (queue_do_pop): avoid cast with Qfalse
(rb_szqueue_push): ditto, use queue_sleep wrapper
Modified files:
trunk/ChangeLog
trunk/thread_sync.c
More information about the ruby-cvs
mailing list