java - Is it possible to have a function call as the body of a thread? -


is possible have function executed in different thread calling function in body of thread have defined?

thread background = new thread(new runnable() {     public void run() {         mcamera.addcallbackbuffer(data);    } }); background.start(); 

can this?

provided mcamera , data instance members, static members or final variables , non-null should work.


Comments

Popular posts from this blog

javascript - DIV "hiding" when changing dropdown value -

Does Firefox offer AppleScript support to get URL of windows? -

android - How to install packaged app on Firefox for mobile? -