On 20 Aug 2006 Christian Wieninger <[EMAIL PROTECTED]> wrote:

> what is the best way to make a cList derived object thread safe?

You have to protect all functions of your object which are
dealing with the list (reading and/or writing) with a cMutex.

Alternatively you could use a cRwLock, but this is more
complicated. It should be the prefered solution if you have a lot
concurrent read accesses but only few writes (e.g. like EPG

> There are already some synchronisation methods in VDR (cMutex, 
> cThreadLock,...). Is there any preferred method to solve my problem? Is 
> there any plugin that already handled and solved this?

I think there are a lot, e.g. MP3 plugin.
But VDR core it self has some examples, e.g. cRemote or


Stefan Huelswitt
[EMAIL PROTECTED]  | http://www.muempf.de/

vdr mailing list

Reply via email to