mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
thread_pthread (ubf_timer_destroy): use VM_ASSERT
Don't need the overhead at runtime git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@66417 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
4cf828632f
commit
bb1e08e770
1 changed files with 1 additions and 3 deletions
|
@ -1795,9 +1795,7 @@ ubf_timer_destroy(void)
|
|||
if (timer_delete(timer_posix.timerid) < 0)
|
||||
rb_sys_fail("timer_delete");
|
||||
|
||||
if (ATOMIC_EXCHANGE(timer_posix.state, RTIMER_DEAD) != RTIMER_DEAD) {
|
||||
rb_bug("YOU KNOW I'M NOT DEAD\n");
|
||||
}
|
||||
VM_ASSERT(ATOMIC_EXCHANGE(timer_posix.state, RTIMER_DEAD) == RTIMER_DEAD);
|
||||
}
|
||||
#elif UBF_TIMER == UBF_TIMER_PTHREAD
|
||||
int err;
|
||||
|
|
Loading…
Add table
Reference in a new issue