Re: recursive locking problem

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

 



On Thursday 08 September 2011 18:34:32 Antti Palosaari wrote:
> lock() + lock() + unlock() == free.

Hi,

As far as I can see the Linux kernel's mutex API doesn't have support for 
checking if a mutex is owned. I guess you would have to do something like:

while (mutex_owned(&xxx))
	mutex_unlock(&xxx);

--HPS
--
To unsubscribe from this list: send the line "unsubscribe linux-media" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Input]     [Video for Linux]     [Gstreamer Embedded]     [Mplayer Users]     [Linux USB Devel]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Yosemite Backpacking]
  Powered by Linux