(runloop.c) check_oneshot - turn into inline function