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

Remove synchronization from duplicate() algorithm #45

Closed
lukaseder opened this issue Sep 22, 2014 · 0 comments
Closed

Remove synchronization from duplicate() algorithm #45

lukaseder opened this issue Sep 22, 2014 · 0 comments

Comments

@lukaseder
Copy link
Member

Spliterator already guarantees thread-safe advancement of the underlying Iterator :

Despite their obvious utility in parallel algorithms, spliterators are not expected to be thread-safe; instead, implementations of parallel algorithms using spliterators should ensure that the spliterator is only used by one thread at a time.

We thus do not need to explicitly synchronize

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant