13.10.2015 17:11, Dmitry Osipenko пишет:
+ ptimer_set_limit(tb->timer, value, 0); + ptimer_set_count(tb->timer, value);
Umm... looking more at these lines, I think it might put in a trouble in some corner case. It might worth trying to make ptimer more flexible rather than to workaround it's imperfection.
-- Dmitry