Skip to content

bug fix: DispatchWorkItem init failed to store group parameter #100

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

Closed

Conversation

dgrove-oss
Copy link
Contributor

No description provided.

@MadCoder
Copy link
Contributor

MadCoder commented Jul 6, 2016

I won't merge this because we're disputing that it is a good interface. @mwwa to follow up on this.

@dgrove-oss
Copy link
Contributor Author

ok; makes sense. I ran into this while porting NSOperation in foundation to use the Swift 3 overlay. Not blocking (I can test using the unmerged fix for now).

@MadCoder
Copy link
Contributor

MadCoder commented Jul 6, 2016

well you should not use the group:group with a WorkItem and we're talking about adding an async() that takes a WorkItem and a group. so you will need some support at some point, but fixing the WorkItem init() feels wrong to us.

@dgrove-oss
Copy link
Contributor Author

dgrove-oss commented Jul 6, 2016

ok. So the likely outcome is that the _group instance field of WorkItem gets removed and we get an additional async method on queue instead. I'll pick it up again in the morning (have to head out now).

@MadCoder
Copy link
Contributor

MadCoder commented Jul 6, 2016

yes that's what we're thinking about, @mwwa will lead that part on our end, I think he also has a few minor adjustments coming up.

@mwwa
Copy link
Contributor

mwwa commented Jul 6, 2016

Yeah. Stay tuned for a bunch of tweaks to the interface sometime next week. We should probably hold off on things like this PR until then, and then sync up all the changes at once.

@shahmishal
Copy link
Member

@swift-ci Please test

1 similar comment
@shahmishal
Copy link
Member

@swift-ci Please test

@seabaylea
Copy link
Contributor

seabaylea commented Jul 14, 2016

The CI failure should be fixed by #105. Note that when running the tests on a performance box I get the following failures:

FAIL: dispatch_concur
HANG: dispatch_timer_short
FAIL: dispatch_readsync
FAIL: dispatch_io

@dgrove-oss
Copy link
Contributor Author

@mwwa any update on the overlay API tweaks?

@mwwa
Copy link
Contributor

mwwa commented Jul 15, 2016

@dgrove-oss Yeah, I just pushed my changes, I won't be opening the PR quite yet but these should help.

mwwa/swift@master...mwwa:libdispatch-overlay-fixes

@dgrove-oss dgrove-oss closed this Jul 21, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants