Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 0419d7e

Browse files
author
zhourenjian
committed
Add a managable attribute to SimplePipe so SimplePipe's pipe monitor thread can be a static thread for all pipes. In a result, thread number is decreased.
Using a different way to avoid using Thread.sleep inside pipe monitor
1 parent a58a20d commit 0419d7e

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

sources/net.sf.j2s.ajax/ajaxpipe/net/sf/j2s/ajax/SimplePipeRPCHttpServlet.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ public void helpThrough(SimplePipeRunnable pipe,
3535
}
3636

3737
});
38+
pipeRunnable.pipeManaged = managingPipe;
3839
}
3940
return runnable;
4041
}

0 commit comments

Comments
 (0)