Do you have a way that your MP threads could be used/called from
another RB plugin?  I am working on a graphics plugin (when I have
the time), and it would really benefit from 4 threads (one thread
processing one of the color channels).  For most of the functions,
the same task is applied independently to each channel I already have
the color data for each channel separated into different data blocks.

You would create four threads at the RB level and call your plugin from the
threads. One thread would call MyPlugin.ProcessRed, another would call
MyPlugin.ProcessGreen, etc. Or, MyPlugin.Process(RedData),
MyPlugin.Process(GreenData), etc.

As with any threaded code, inside the plugin you would have to be careful
with the design. No unsafe API calls, no unsynchronized memory access, etc.
Since the code doing the work would be in your plugin, you would sort of be
on your own as to synchronization. You would have to call the respective OS
APIs to prepare and use Semaphores and Critical Sections if you needed them
to share memory across multiple threads.

There really isn't a way to use my classes from inside the plugin. I think
at that level you would have to call the OS APIs yourself to spawn
preemptive/MP threads.

Daniel L. Taylor
Taylor Design
Computer Consulting & Software Development
[EMAIL PROTECTED]
www.taylor-design.com



_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>

Reply via email to