Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Issue 5624117646589952: Issue 1771 - Update RootTools (Closed)

Created:
Nov. 6, 2014, 10:39 a.m. by René Jeschke
Modified:
Jan. 29, 2015, 6:17 p.m.
Reviewers:
Felix Dahlke
CC:
Wladimir Palant
Visibility:
Public.

Description

Issue 1771 - Update RootTools

Patch Set 1 #

Patch Set 2 : Removed leftover Log #

Patch Set 3 : Updated to v3.4 as v3.3 wasn't the latest version #

Total comments: 8

Patch Set 4 : Renamed some stuff #

Unified diffs Side-by-side diffs Delta from patch set Stats (+71 lines, -10 lines) Patch
M .classpath View 1 2 1 chunk +1 line, -1 line 0 comments Download
D libs/RootTools-1.7.jar View Binary file 0 comments Download
A libs/RootTools-3.4.jar View 1 2 Binary file 0 comments Download
M src/org/adblockplus/android/configurators/IptablesProxyConfigurator.java View 1 2 3 8 chunks +70 lines, -9 lines 0 comments Download

Messages

Total messages: 6
René Jeschke
Nov. 6, 2014, 1:40 p.m. (2014-11-06 13:40:26 UTC) #1
Felix Dahlke
Just a couple of nits. http://codereview.adblockplus.org/5624117646589952/diff/5685265389584384/src/org/adblockplus/android/configurators/IptablesProxyConfigurator.java File src/org/adblockplus/android/configurators/IptablesProxyConfigurator.java (right): http://codereview.adblockplus.org/5624117646589952/diff/5685265389584384/src/org/adblockplus/android/configurators/IptablesProxyConfigurator.java#newcode58 src/org/adblockplus/android/configurators/IptablesProxyConfigurator.java:58: private static List<String> sendShell(final ...
Nov. 19, 2014, 10:38 a.m. (2014-11-19 10:38:39 UTC) #2
René Jeschke
http://codereview.adblockplus.org/5624117646589952/diff/5685265389584384/src/org/adblockplus/android/configurators/IptablesProxyConfigurator.java File src/org/adblockplus/android/configurators/IptablesProxyConfigurator.java (right): http://codereview.adblockplus.org/5624117646589952/diff/5685265389584384/src/org/adblockplus/android/configurators/IptablesProxyConfigurator.java#newcode58 src/org/adblockplus/android/configurators/IptablesProxyConfigurator.java:58: private static List<String> sendShell(final String command, final int timeout) ...
Nov. 24, 2014, 1:07 p.m. (2014-11-24 13:07:57 UTC) #3
Felix Dahlke
This doesn't really seem to solve #1498, so I've created a dedicated issue for this ...
Jan. 9, 2015, 6:34 p.m. (2015-01-09 18:34:08 UTC) #4
René Jeschke
http://codereview.adblockplus.org/5624117646589952/diff/5685265389584384/src/org/adblockplus/android/configurators/IptablesProxyConfigurator.java File src/org/adblockplus/android/configurators/IptablesProxyConfigurator.java (right): http://codereview.adblockplus.org/5624117646589952/diff/5685265389584384/src/org/adblockplus/android/configurators/IptablesProxyConfigurator.java#newcode261 src/org/adblockplus/android/configurators/IptablesProxyConfigurator.java:261: private final Semaphore completionNotify = new Semaphore(1); On 2014/11/24 ...
Jan. 23, 2015, 1:37 p.m. (2015-01-23 13:37:36 UTC) #5
Felix Dahlke
Jan. 27, 2015, 8:45 a.m. (2015-01-27 08:45:36 UTC) #6
LGTM

http://codereview.adblockplus.org/5624117646589952/diff/5685265389584384/src/...
File src/org/adblockplus/android/configurators/IptablesProxyConfigurator.java
(right):

http://codereview.adblockplus.org/5624117646589952/diff/5685265389584384/src/...
src/org/adblockplus/android/configurators/IptablesProxyConfigurator.java:261:
private final Semaphore completionNotify = new Semaphore(1);
On 2015/01/23 13:37:36, René Jeschke wrote:
> On 2014/11/24 13:07:57, René Jeschke wrote:
> > On 2014/11/19 10:38:39, Felix H. Dahlke wrote:
> > > This confused me a little bit, being a verb (bit unusual for field names).
> How
> > > about just "running" or something?
> > 
> > "running" as name for a flag would mean sense, but I'm using a Semaphore
here,
> > which is used for waiting/counting.
> > 
> > I will come up with something different, still.
> 
> Ok, I changed this to running as I don't have a better name (except
> 'semaphore').
> 
> Thing is, 'running' is wrong, as running is either true or false. A semaphore
> has no true/false it is an integer.
> 
> Still, maybe someone finds a better name in the future^^

True, but I figure for a semaphore with one permit, it seems OK.

Powered by Google App Engine
This is Rietveld