static VALUE t__epoll_set (VALUE self, VALUE val)
{
    if (t__epoll_p(self) == Qfalse)
        rb_raise (EM_eUnsupported, "%s", "epoll is not supported on this platform");

    evma_set_epoll (val == Qtrue ? 1 : 0);
    return val;
}
Example #2
0
static VALUE t__epoll (VALUE self UNUSED)
{
	if (t__epoll_p(self) == Qfalse)
		return Qfalse;

	evma_set_epoll (1);
	return Qtrue;
}
static VALUE t__epoll (VALUE self)
{
    evma_set_epoll (1);
    return Qtrue;
}