r999: maintainers added to README_en.
[cinelerra_cv/mob.git] / cinelerra / apluginthread.C
blob0a0c67f392a27d4f90dcbc5a07179ed7b480391e
1 #include "apluginthread.h"
5 APluginThread::APluginThread(PluginServer *plugin_server)
6  : Thread()
8         synchronous = 1;
9         this->plugin_server = new PluginServer(*plugin_server);
12 APluginThread::~APluginThread()
14         delete plugin_server;
17 APluginThread::attach()
19 // open the plugin
20         plugin_server->open_plugin();
22 // thread the GUI
23         plugin_server->start_gui();
26 APluginThread::detach()
28 printf("APluginThread::detach\n");
29         if(plugin_server)
30         {
31 printf("plugin_server->stop_gui\n");
32                 plugin_server->stop_gui();     // sends a completed command to the thread
34 printf("plugin_server->close_plugin\n");
35                 plugin_server->close_plugin();        // tell client thread to finish
36 printf("done plugin_server->close_plugin\n");
37         }
40 void APluginThread::run()