Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[#45] Updated recv so main thread will write data
The update time was not being updated due to the thread which closes the file not actually writing data. Changes: 1. Only start N - 1 threads which read data from circular buffer and writes to file. 2. Main thread also reads data from circular buffer and writes to file. 3. Main thread starts another thread to read from network before doing its reading/writing. 4. Added a condition variable to make sure the main thread handles at least one chunk of bytes. tmp
- Loading branch information