[Pkg-owncloud-commits] [owncloud-client] 484/498: Propagator: Use fetchAndAddAcquire to get parallelism
Sandro Knauß
hefee-guest at moszumanska.debian.org
Tue Aug 11 14:49:21 UTC 2015
This is an automated email from the git hooks/post-receive script.
hefee-guest pushed a commit to branch master
in repository owncloud-client.
commit 7c52e925b98fc6741c234648d031424a1e6fc6b3
Author: Markus Goetz <markus at woboq.com>
Date: Thu Aug 6 18:13:48 2015 +0200
Propagator: Use fetchAndAddAcquire to get parallelism
---
src/libsync/owncloudpropagator.cpp | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/libsync/owncloudpropagator.cpp b/src/libsync/owncloudpropagator.cpp
index 8640bbb..9e60a9c 100644
--- a/src/libsync/owncloudpropagator.cpp
+++ b/src/libsync/owncloudpropagator.cpp
@@ -56,7 +56,7 @@ int OwncloudPropagator::maximumActiveJob()
max = 3; //default
}
- if (_downloadLimit != 0 || _uploadLimit != 0) {
+ if (_downloadLimit.fetchAndAddAcquire(0) != 0 || _uploadLimit.fetchAndAddAcquire(0) != 0) {
// disable parallelism when there is a network limit.
return 1;
}
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-owncloud/owncloud-client.git
More information about the Pkg-owncloud-commits
mailing list