Skip to content

Commit

Permalink
[#45] Updated recv so main thread will write data
Browse files Browse the repository at this point in the history
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
JustinKyleJames authored and alanking committed Nov 4, 2022
1 parent 4ebf4b4 commit 694d55f
Show file tree
Hide file tree
Showing 2 changed files with 197 additions and 162 deletions.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
cmake_minimum_required (VERSION 3.11 FATAL_ERROR)

find_package(IRODS 4.2.11 EXACT REQUIRED CONFIG)
set(IRODS_CLIENT_REVISION "1")
set(IRODS_CLIENT_REVISION "2")
set(IRODS_CLIENT_VERSION "${IRODS_VERSION}.${IRODS_CLIENT_REVISION}")

set(IRODS_CLIENT_NAME "irods-gridftp-client")
Expand Down
Loading

0 comments on commit 694d55f

Please sign in to comment.