c++ - Forking in a MEX -


i trying mex c++ code contains systemc module. here trying achieve:

the mex file should act according input supplied user.

when called first time, want fork new process , should create simple systemc module (which contains sc_thread, has wait on events matlab(which plan implement semaphore)). after creating systemc module, i'll start simulation. new process contains systemc module , sc_thread function runs once , waits on event matlab. now, return results matlab , exit out of main mex process. should return process id of process contains systemc module.

when call mex after this, argument pass, determines systemc module exists , should post semaphore triggers sc_thread , runs once , returns result matlab.

in end, want kill process.

my question : of make sense , feasible in matlab?


Comments

Popular posts from this blog

html - Styling progress bar with inline style -

java - Oracle Sql developer error: could not install some modules -

How to use autoclose brackets in Jupyter notebook? -