LogCabin
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
Public Member Functions | Public Attributes
LogCabin::RPC::anonymous_namespace{ClientSession.cc}::FileNotifier Struct Reference

Exits an event loop when a file event occurs. More...

Inheritance diagram for LogCabin::RPC::anonymous_namespace{ClientSession.cc}::FileNotifier:
LogCabin::Event::File

List of all members.

Public Member Functions

 FileNotifier (Event::Loop &eventLoop, int fd, Ownership ownership)
void handleFileEvent (uint32_t events)
 This method is overridden by a subclass and invoked when a file event occurs.

Public Attributes

Event::LoopeventLoop
uint64_t count

Detailed Description

Exits an event loop when a file event occurs.

Helper for ClientSession constructor.

Definition at line 39 of file ClientSession.cc.


Constructor & Destructor Documentation

LogCabin::RPC::anonymous_namespace{ClientSession.cc}::FileNotifier::FileNotifier ( Event::Loop eventLoop,
int  fd,
Ownership  ownership 
) [inline]

Definition at line 40 of file ClientSession.cc.


Member Function Documentation

void LogCabin::RPC::anonymous_namespace{ClientSession.cc}::FileNotifier::handleFileEvent ( uint32_t  events) [inline, virtual]

This method is overridden by a subclass and invoked when a file event occurs.

This method will be invoked by the main event loop on whatever thread is running the Event::Loop.

If the event still exists when this method returns (e.g., the file is readable but the method did not read the data), then the method will be invoked again (unless flags such as EPOLLONESHOT or EPOLLET are used).

Parameters:
eventsIndicates whether the file is readable or writable or both (OR'ed combination of EPOLL_EVENTS values).

Implements LogCabin::Event::File.

Definition at line 46 of file ClientSession.cc.


Member Data Documentation

Event::Loop& LogCabin::RPC::anonymous_namespace{ClientSession.cc}::FileNotifier::eventLoop

Definition at line 50 of file ClientSession.cc.

uint64_t LogCabin::RPC::anonymous_namespace{ClientSession.cc}::FileNotifier::count

Definition at line 51 of file ClientSession.cc.


The documentation for this struct was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines