Skip to content
This repository was archived by the owner on Oct 23, 2024. It is now read-only.

Abstract event manager#1

Open
jmlvanre wants to merge 12 commits into
masterfrom
abstract-event-manager
Open

Abstract event manager#1
jmlvanre wants to merge 12 commits into
masterfrom
abstract-event-manager

Conversation

@jmlvanre
Copy link
Copy Markdown

@jmlvanre jmlvanre commented Oct 3, 2014

sharing event manager API

… for the event_manager abstraction dependency injection.

For now: SocketManager -> EventManager -> internal::EventManager.
In this step we only virtualized (raised) the mandatory send() functions.
internal::EventManager exists to inject only the functions that http_proxy depends on.
…ocketManager derived class).

This also tackles the rename of the variable socket_manager -> event_manager.
…bev_event_manager.{h,c}pp

forward all io::* calls into virtual implementations in event_manager.
…nchmark requires a fork before libprocess is initialized. The benchmark uses 2 separate processmanagers in order to prevent short-circuiting of message passing.
…n enumeration representing what kind of IO should be performed.
@jmlvanre
Copy link
Copy Markdown
Author

jmlvanre commented Oct 3, 2014

This pull request is just a friendly environment for comments on this proposed change.

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

So why are we declaring the externs here?

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why? isn't this just the socket fd?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants