shm interface problems

Olivier Crête olivier.crete at collabora.com
Wed Jan 16 11:19:32 PST 2013


Hi,

On Wed, 2013-01-16 at 10:32 -0800, mattes wrote:
> Olivier,
> 
> thanks for your response, I really appreciate it.
> 
> I am not quite sure about what the mutex is supposed to lock?
> Are you saying I need to protect threadA monitoring the client
> connection:
> 
>    mutex_lock();
>    rc = sp_writer_recv( spipe, client );
>    mutex_unlock();

Yes, you need to protect every access to the ShmPipe object and the
related ShmBuffer, ShmAlloc, ShmBlock, etc.

-- 
Olivier Crête
olivier.crete at collabora.com



More information about the gstreamer-devel mailing list