Boost logo

Boost Users :

Subject: Re: [Boost-users] Does the Proactor of boost uses edge-triggered epoll on linux?
From: Journeyer J. Joh (oosaprogrammer_at_[hidden])
Date: 2013-05-29 21:19:30


Hi Igor R and Yang Acer,

I found from where you pointed by grepping

$ grep -r "EPOLLET" ./
./boost/asio/detail/impl/epoll_reactor.ipp: ev.events = EPOLLIN | EPOLLERR
| EPOLLET;
./boost/asio/detail/impl/epoll_reactor.ipp: ev.events = EPOLLIN |
EPOLLERR | EPOLLET;
./boost/asio/detail/impl/epoll_reactor.ipp: ev.events = EPOLLIN | EPOLLERR
| EPOLLHUP | EPOLLPRI | EPOLLET;
./boost/asio/detail/impl/epoll_reactor.ipp: ev.events = EPOLLIN | EPOLLERR
| EPOLLHUP | EPOLLPRI | EPOLLET;
./boost/asio/detail/impl/epoll_reactor.ipp: ev.events = EPOLLIN | EPOLLERR
| EPOLLET;

$ grep -r "EPOLLIN" ./
./boost/asio/detail/impl/epoll_reactor.ipp: ev.events = EPOLLIN | EPOLLERR
| EPOLLET;
./boost/asio/detail/impl/epoll_reactor.ipp: ev.events = EPOLLIN |
EPOLLERR;
./boost/asio/detail/impl/epoll_reactor.ipp: ev.events = EPOLLIN |
EPOLLERR | EPOLLET;
./boost/asio/detail/impl/epoll_reactor.ipp: ev.events = EPOLLIN |
EPOLLERR;
./boost/asio/detail/impl/epoll_reactor.ipp: ev.events = EPOLLIN | EPOLLERR
| EPOLLHUP | EPOLLPRI | EPOLLET;
./boost/asio/detail/impl/epoll_reactor.ipp: ev.events = EPOLLIN | EPOLLERR
| EPOLLHUP | EPOLLPRI | EPOLLET;
./boost/asio/detail/impl/epoll_reactor.ipp: ev.events = EPOLLIN | EPOLLERR
| EPOLLET;
./boost/asio/detail/impl/epoll_reactor.ipp: static const int flag[max_ops]
= { EPOLLIN, EPOLLOUT, EPOLLPRI };

So boost uses edge-triggered manner of epoll
And I learned a little of the purpose of ipp. Boost developpers are
template gurus!

Thank you very much.

Sincerely
Journeyer

----------------------------------------
Journeyer J. Joh
o o s a p r o g r a m m e r
a t
g m a i l d o t c o m
----------------------------------------

2013/5/30 Igor R <boost.lists_at_[hidden]>

> > I downloaded latest boost 1.53.0 and searched for epoll_create,
> epoll_wait,
> > and many socket APIs for linux and windows but failed to find api calls
> for
> > those.
> >
> > I expected that I would find api calls for those.
>
>
> I guess your search doesn't include *.ipp files.
> Please take a look at boost/boost/asio/detail/impl/epoll_reactor.ipp
> _______________________________________________
> Boost-users mailing list
> Boost-users_at_[hidden]
> http://lists.boost.org/mailman/listinfo.cgi/boost-users
>



Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net