On 5/4/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > On May 04, 2007, at 03:28 UTC, Peter K. Stys wrote: > > > Here's another thing I don't understand: I wrote a mock plugin that > > runs a very long loop. I call the plugin from an RB thread, and the > > whole app is tied up for the duration of the loop: if a plugin fn is > > called from an RB thread, shouldn't it be "threaded" ie should > > control not return to the main app right away? > > No, RB threads are cooperative, and your plugin wasn't cooperating. It > needs to call RBYieldToAnyThread. See the LongProcessor example that > comes with the plugin SDK. >
Thx Joe. Calling a plugin from an RB thread and calling RBYieldToAnyThread periodically does the trick. P. -- ------------------------------------------------------------------------------- Peter K. Stys, MD Professor of Medicine(Neurology), Senior Scientist Ottawa Health Research Institute, Div. of Neuroscience Ottawa Hospital / University of Ottawa Ontario, CANADA tel: (613)761-5444 fax: (613)761-5330 http://www.ohri.ca/profiles/stys.asp ------------------------------------------------------------------------------- _______________________________________________ Unsubscribe or switch delivery mode: <http://www.realsoftware.com/support/listmanager/> Search the archives: <http://support.realsoftware.com/listarchives/lists.html>
