Skip to content

fix potential deadlock in thread_queue#556

Closed
gferenc95 wants to merge 1 commit into
eclipse-paho:developfrom
gferenc95:thread_queue
Closed

fix potential deadlock in thread_queue#556
gferenc95 wants to merge 1 commit into
eclipse-paho:developfrom
gferenc95:thread_queue

Conversation

@gferenc95
Copy link
Copy Markdown
Contributor

No description provided.

- capacity setter notifies notFullCond to avoid deadlock on waiting for put
- docstring
@fpagliughi
Copy link
Copy Markdown
Contributor

Hey, thanks for pointing this out. You're completely correct that increasing the capacity makes the queue "not full" and it should notify waiting threads.

Unfortunately, as this is an official Eclipse project, I (literally) can't merge a PR from anyone that doesn't have a signed ECA with the Eclipse foundation, which probably isn't worth it for a small change like this. I can get the fix in with this next update.

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.

2 participants