Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

scheduler: remove mio eventloop #1691

Merged
merged 2 commits into from
Mar 21, 2017
Merged

Conversation

BusyJay
Copy link
Member

@BusyJay BusyJay commented Mar 20, 2017

This pr simplify the logic of scheduler by removing the mio dependency. SendCh is also refactored in this pr, so it will be also helpful for introducing mio 0.6 later.

@siddontang @disksing @zhangjinpeng1987 PTAL

@disksing
Copy link
Contributor

LGTM

impl<T> Sender<T> for mpsc::SyncSender<T> {
fn send(&self, t: T) -> Result<(), NotifyError<T>> {
match mpsc::SyncSender::try_send(self, t) {
Ok(()) => Ok(()),
Copy link
Contributor

Choose a reason for hiding this comment

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

any test to cover full and disconnected error?

name: &'static str,

marker: PhantomData<T>,
Copy link
Contributor

Choose a reason for hiding this comment

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

why marker here?

Copy link
Member Author

Choose a reason for hiding this comment

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

To consume the generic type T.

Copy link
Contributor

@siddontang siddontang left a comment

Choose a reason for hiding this comment

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

LGTM

@siddontang siddontang merged commit 1794217 into master Mar 21, 2017
@siddontang siddontang deleted the busyjay/remove-mio-for-scheduler branch March 21, 2017 07:09
iosmanthus pushed a commit to iosmanthus/tikv that referenced this pull request Oct 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants