mirror of
https://github.com/upa/mscp.git
synced 2026-02-04 03:24:58 +08:00
add memory barrier to notify monitor thread of copy threads finished
This commit is contained in:
@@ -416,6 +416,7 @@ void mscp_copy_thread_cleanup(void *arg)
|
||||
if (t->sftp)
|
||||
ssh_sftp_close(t->sftp);
|
||||
t->finished = true;
|
||||
__sync_synchronize();
|
||||
}
|
||||
|
||||
void *mscp_copy_thread(void *arg)
|
||||
|
||||
Reference in New Issue
Block a user