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

Refine CI script to ensure correctness. #15

Merged
merged 4 commits into from
Sep 18, 2018
Merged

Refine CI script to ensure correctness. #15

merged 4 commits into from
Sep 18, 2018

Conversation

Hoverbear
Copy link
Contributor

Based off tikv/raft-rs#117

src/lib.rs Outdated
loop {
guard = self.pause_notifier.wait(guard).unwrap();
if !*guard {
if !self.pause.load(Ordering::Acquire) {
Copy link
Member

Choose a reason for hiding this comment

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

pause should make a thread sleep instead of busy loop.

 pause   Threads sleep at the fail point until the fail point is set to
   off

https://www.freebsd.org/cgi/man.cgi?query=fail

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Oh, good catch. I'll revert this change.

@Hoverbear
Copy link
Contributor Author

@overvenus Please take another look.

Copy link
Member

@overvenus overvenus left a comment

Choose a reason for hiding this comment

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

👍

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

@Hoverbear
Copy link
Contributor Author

@siddontang Seems I can't merge.

@siddontang siddontang merged commit c02bc4b into master Sep 18, 2018
@siddontang siddontang deleted the refine-travis branch September 18, 2018 15:30
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