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

Implement multithreading tests #68

Merged
merged 2 commits into from Sep 26, 2016
Merged

Conversation

@MortimerGoro
Copy link
Collaborator

MortimerGoro commented Sep 26, 2016

I have added some multithreading tests. It happened to me that context sharing was working ok in the current test (same thread) but was failing on servo due to multithreading environment. Better to test all the scenarios ;)


// Avoid drop until test ends
loop {
thread::sleep(time::Duration::from_millis(200));

This comment has been minimized.

@emilio

emilio Sep 26, 2016

Member

This is nasty ;-)

Please add another kind of mechanism to block, another pair of channels would work.

This comment has been minimized.

@MortimerGoro

MortimerGoro Sep 26, 2016

Author Collaborator

Agree ;) Already fixed

@emilio
Copy link
Member

emilio commented Sep 26, 2016

Neat, looks good to me with that test change.

@emilio
Copy link
Member

emilio commented Sep 26, 2016

r=me

@emilio emilio merged commit 68447da into servo:master Sep 26, 2016
1 check passed
1 check passed
continuous-integration/travis-ci/pr The Travis CI build passed
Details
MortimerGoro added a commit to MortimerGoro/rust-offscreen-rendering-context that referenced this pull request Sep 27, 2016
* Implement multithreading tests
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked issues

Successfully merging this pull request may close these issues.

None yet

2 participants
You can’t perform that action at this time.