As per the issue Polling #3, I implemented the read-write functions using bordeax-threads condition-wait and condition-notify.
In the process, I noticed that the tests would never complete as written due to waiting forever for receiving end of the pipe to close, so I added the necessary close calls and the tests passed for me.
As per the issue Polling #3, I implemented the read-write functions using bordeax-threads condition-wait and condition-notify.
In the process, I noticed that the tests would never complete as written due to waiting forever for receiving end of the pipe to close, so I added the necessary close calls and the tests passed for me.