-
Notifications
You must be signed in to change notification settings - Fork 256
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This construct enters into a deadlock if 1) the writer is waiting because the queue is full 2) the reader is waiting on the writer to quit The reason is that this status is not communicated through the queue but with a separate variable. This commit makes it so the status is communicated only through the queue itself. Special note has to be taken in the case of a timeout in the reader (res == fd->Timeout) since normally this branch does not look at the queue at all. Because of this we needed to add a function the the channel that actively checks whether the other side is still alive.
- Loading branch information
Showing
2 changed files
with
24 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters