detach_if_pending
ret = detach_if_pending(timer, base, false);
ret = detach_if_pending(timer, base, true);