[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [sc-dev] running the interpreter from my own thread on the C side

this seems to work fine, haven't had a problem with it yet, but is it kosher, i.e. will it screw things up somehow?

* glSchedThreadFunc( void * data ) {

VMGlobals * g = gMainVMGlobals;

This object better be stored in a safe place in SC like a classvar to ensure that it cannot be garbage collected.

it is.

PyrObject * w = (PyrObject*)data; // this is an instance of sc class GLWindow


true) {



I hope there is a sleep or a wait for some event here.

of course.

thanks many,