[CinCV TNG] lock problems with suse/leap, which can cause segvs in 5.1

Johannes Sixt j6t at kdbg.org
Mon Nov 7 19:20:05 CET 2016


Am 06.11.2016 um 23:02 schrieb Good Guy:
>     Perhaps the mutexes should be changed to recursive?
>
>
> from guicast mutex.C (cin5.1):
>
> int Mutex::unlock()
> {
>         if( count <= 0 ) {
>                 printf("Mutex::unlock not locked: %s\n", title);
>                 return 0;
>         }
> // Remove from recursive status
>         if(recursive)
>         {
>
> Mutex locks can be recursive, or not, already...

There is a misunderstanding. The code you show is Cinelerra's own 
recursive mutex emulation. But Petter meant to create all 
pthread_mutex_t objects with attribute type PTHREAD_MUTEX_RECURSIVE. 
They are probably more robust as they most likely do not use 
transactional memory (TSX).

-- Hannes



More information about the Cinelerra mailing list