|
From: Tom H. <to...@co...> - 2015-02-19 16:25:33
|
On 19/02/15 15:44, SHEHAB ZAINELDINE wrote: > When you say "recursively locking a non-recursive mutex" what is it > exactly that you mean. Is it even possible to recursively lock a > non-recursive mutex? When I try it the computer enters into a deadlock, > and the thread is unable to aquire the lock the second time. Well that's kind of the point, and why helgrind is telling you about it, because it's not allowed! What it means is that your program is trying to lock a mutex that is already locked and which was not declared as a recursive mutex. Tom -- Tom Hughes (to...@co...) http://compton.nu/ |