Mailing List archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[vdr] Re: can the osd be accessed by a separate pthread?



Gunnar Roth <gunnar.roth@gmx.de> wrote:

> Ok this means the rule is. OpenRaw must only be called after 
> cOsdObject->Show() has been called, but before the destructor of
> cOsdObject is called. In the destructor the osd must be closed. 
> And it is the case, that an StatusMessage issued from svdrsend.pl
> results in the desctruction of the current cOsdObject ?
 
> > The plugin has to make sure that it has deleted the osd before the
> >destructor returns. If the osd has been allocated in the thread, the
> >destructor has to make sure that the thread has completely ended and
> >released the osd _before_ it returns.

> Hmm the race condition ist there. The destructor of tetris just set
> the running flag to false and returns at once,
> while the thread is still running for a while and access the osd. the 
> result is a disturbed picture and sound and wrong osd display
> of a status message.

now i understand the first time, what you meant by waiting for the
thread to end. the destructor of cOsdObject must not return before the
osd is closed. ok, should be trivial to fix. :o)
 
> Well, now i understood how i can use the osd from a separate thread
> and do not interfere with vdr core.
> 
> thanks for the discussion of the topic.
> 
> this should really be added to PLUGINS.html. ;-)

definitly.

kind regards ...
clemens


-- 
Info:
To unsubscribe send a mail to ecartis@linuxtv.org with "unsubscribe vdr" as subject.



Home | Main Index | Thread Index