Searched refs:CBAndEventMask (Results 1 - 2 of 2) sorted by relevance

/external/chromium_org/net/tools/epoll_server/
H A Depoll_server.cc33 // CBAndEventMask struct. This enables O(1) lookup in the list for a given
35 // and keep a list::iterator in CBAndEventMask to achieve the same effect.
41 // of link pointers makes it easier to retrieve the CBAndEventMask from the
42 // list, easier to check whether an CBAndEventMask is in the list, uses less
45 // - Embed the fd directly into CBAndEventMask and switch to using hash_set.
167 inline void EpollServer::AddToReadyList(CBAndEventMask* cb_and_mask) {
175 const CBAndEventMask& cb_and_mask) {
193 FDToCBMap::iterator fd_i = cb_map_.find(CBAndEventMask(NULL, 0, fd));
214 cb_map_.insert(CBAndEventMask(cb, event_mask, fd));
271 FDToCBMap::iterator fd_i = cb_map_.find(CBAndEventMask(NUL
[all...]
H A Depoll_server.h512 struct CBAndEventMask { struct in class:net::EpollServer
513 CBAndEventMask() function in struct:net::EpollServer::CBAndEventMask
524 CBAndEventMask(EpollCallbackInterface* cb, function in struct:net::EpollServer::CBAndEventMask
534 // standing function. However, since CBAndEventMask is a protected type and
536 bool operator==(const CBAndEventMask& cb_and_mask) const {
543 mutable LIST_ENTRY(CBAndEventMask) entry;
559 size_t operator()(const CBAndEventMask& cb_and_eventmask) const {
564 typedef base::hash_set<CBAndEventMask, CBAndEventMaskHash> FDToCBMap;
644 // CBAndEventMask to the ready list. If the fd is already on the ready
646 void AddToReadyList(CBAndEventMask* cb_and_mas
[all...]

Completed in 557 milliseconds