From 8433190d5a461248552d3e41c5863ca608f12cda Mon Sep 17 00:00:00 2001 From: Klaus Schmidinger Date: Mon, 17 Apr 2006 10:02:18 +0200 Subject: The new function cPlugin::MainThreadHook() can be used by plugins to perform actions in the context of the main program thread --- PLUGINS.html | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) (limited to 'PLUGINS.html') diff --git a/PLUGINS.html b/PLUGINS.html index b1c4877e..bd18a866 100644 --- a/PLUGINS.html +++ b/PLUGINS.html @@ -63,6 +63,7 @@ structures and allows it to hook itself into specific areas to perform special a
  • User interaction
  • Housekeeping
      +
  • Main thread hook
  • Activity
  • Setup parameters @@ -620,6 +621,27 @@ the plugin should launch a separate thread to do this.
      +

    Main thread hook

    + +
    Pushing in...

    + +Normally a plugin only reacts on user input if directly called through its +main menu entry, or performs some background +activity in a separate thread. However, sometimes a plugin may need to do +something in the context of the main program thread, without being explicitly +called up by the user. In such a case it can implement the function + +

    +virtual void MainThreadHook(void);
    +

    + +in which it can do this. This function is called for every plugin once during +every cycle of VDR's main program loop, which typically happens once every +second. +Be very careful when using this function, and make sure you return from it +as soon as possible! If you spend too much time in this function, the user +interface performance will become sluggish! +


    Activity

    Now is not a good time!

    -- cgit v1.2.3