mirror of
https://github.com/upa/mscp.git
synced 2026-02-22 15:24:44 +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)
|
if (t->sftp)
|
||||||
ssh_sftp_close(t->sftp);
|
ssh_sftp_close(t->sftp);
|
||||||
t->finished = true;
|
t->finished = true;
|
||||||
|
__sync_synchronize();
|
||||||
}
|
}
|
||||||
|
|
||||||
void *mscp_copy_thread(void *arg)
|
void *mscp_copy_thread(void *arg)
|
||||||
|
|||||||
Reference in New Issue
Block a user