[ruby-cvs:73577] normal:r66476 (trunk): thread_sync.c (rb_mutex_abandon_keeping_mutexes): remove unnecessary check

normal at ruby-lang.org normal at ruby-lang.org
Fri Dec 21 21:32:48 JST 2018


normal	2018-12-21 21:32:48 +0900 (Fri, 21 Dec 2018)

  New Revision: 66476

  https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=66476

  Log:
    thread_sync.c (rb_mutex_abandon_keeping_mutexes): remove unnecessary check
    
    rb_mutex_abandon_all functions fine when passed a NULL value,
    so let the compiler deal with the complexity of the branch
    instead of the person reading the code.

  Modified files:
    trunk/thread_sync.c


More information about the ruby-cvs mailing list