Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
T
tic
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wenyuanbo
tic
Commits
a897d36d
Commit
a897d36d
authored
Nov 01, 2019
by
autumnqin
Committed by
Yizhi Liu
Nov 01, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix the problem that android_rpc compilation failed. (#4244)
Signed-off-by: qinqiuping <autumnqin@126.com>
parent
a3ca1a4d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 additions
and
10 deletions
+1
-10
apps/android_rpc/app/src/main/java/ml/dmlc/tvm/tvmrpc/RPCProcessor.java
+1
-10
No files found.
apps/android_rpc/app/src/main/java/ml/dmlc/tvm/tvmrpc/RPCProcessor.java
View file @
a897d36d
...
...
@@ -20,7 +20,6 @@ package ml.dmlc.tvm.tvmrpc;
import
android.os.ParcelFileDescriptor
;
import
java.net.Socket
;
import
ml.dmlc.tvm.rpc.ConnectTrackerServerProcessor
;
import
ml.dmlc.tvm.rpc.SocketFileDescriptorGetter
;
import
ml.dmlc.tvm.rpc.RPCWatchdog
;
/**
...
...
@@ -35,14 +34,6 @@ class RPCProcessor extends Thread {
private
ConnectTrackerServerProcessor
currProcessor
;
private
boolean
first
=
true
;
static
final
SocketFileDescriptorGetter
socketFdGetter
=
new
SocketFileDescriptorGetter
()
{
@Override
public
int
get
(
Socket
socket
)
{
return
ParcelFileDescriptor
.
fromSocket
(
socket
).
getFd
();
}
};
@Override
public
void
run
()
{
RPCWatchdog
watchdog
=
new
RPCWatchdog
();
watchdog
.
start
();
...
...
@@ -56,7 +47,7 @@ class RPCProcessor extends Thread {
}
}
try
{
currProcessor
=
new
ConnectTrackerServerProcessor
(
host
,
port
,
key
,
socketFdGetter
,
watchdog
);
currProcessor
=
new
ConnectTrackerServerProcessor
(
host
,
port
,
key
,
watchdog
);
}
catch
(
Throwable
e
)
{
e
.
printStackTrace
();
// kill if creating a new processor failed
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment