I made my Matlab controlling thread interruptable and found, that it is interrupted all the time on first run.
This is because GetProxyRequestCallback has interrupting code inside:
private static class GetProxyRequestCallback implements RequestCallback
{
private final Thread _requestingThread;
private volatile MatlabProxy _proxy;
public GetProxyRequestCallback() { _requestingThread = Thread.currentThread(); } @Override public void proxyCreated(MatlabProxy proxy) { _proxy = proxy; _requestingThread.interrupt(); } public MatlabProxy getProxy() { return _proxy; }
}
Are there any reasons to interrupt calling thread or this is just a bug?
あなたの回答
tips
プレビュー