Giter Site home page Giter Site logo

Comments (2)

GoogleCodeExporter avatar GoogleCodeExporter commented on June 17, 2024
I also tried this with 2011b 64bit and had the same issue.

Just to be clear, the issue here is that a thread that does not need a return 
value (i.e. is called with eval() ), should continue and not block in 
JMIWrapper.invokeAndWait.

Or, eval should call some new "invokeAndDontWait" function which does not wait 
for the return value since none is requested.  

I'm still confused why this would be a problem since I have two different 
MatlabProxys.  I'm not sure if I stumbled on a bug or a feature.




Original comment by [email protected] on 30 Jul 2012 at 1:12

from matlabcontrol.

GoogleCodeExporter avatar GoogleCodeExporter commented on June 17, 2024
What you have described is by design. When you call a method on the proxy the 
Java thread you are calling on blocks until Matlab has completed execution. The 
proxy itself is not blocked, you may call more methods on it from other Java 
threads although this will not cause simultaneous execution as Matlab itself is 
single threaded.

The reason the proxy blocks even when calling a function with a void return 
type is so that it is possible to reliably take action on Matlab's state after 
a given action - this is very problematic in cases where you are taking other 
actions that effect Matlab such as modifying files that Matlab may be asked to 
make use of.

Original comment by [email protected] on 18 Feb 2013 at 8:19

  • Changed state: Invalid

from matlabcontrol.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.