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

ConcurrentModifications exceptions #2

Open
martinrosstmc opened this issue Jun 25, 2018 · 1 comment
Open

ConcurrentModifications exceptions #2

martinrosstmc opened this issue Jun 25, 2018 · 1 comment

Comments

@martinrosstmc
Copy link

Hi,

I'm getting ConcurrentModificationExceptions while attempting to use two threads to put/take from the queue. I do have a question around locking. There are takeLock's and putLock's... But I don't see how the locking preventing the LinkedHashSet from having these concurrent since they put doesn't check takeLock and viceVersa.

@bvanalderweireldt
Copy link
Owner

bvanalderweireldt commented Apr 14, 2019

Yeah there is a bug, originally I wanted to avoid using a full lock for put, I'll publish a new version soon.

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

No branches or pull requests

2 participants