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 (t...@compton.nu) http://compton.nu/ ------------------------------------------------------------------------------ Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server from Actuate! Instantly Supercharge Your Business Reports and Dashboards with Interactivity, Sharing, Native Excel Exports, App Integration & more Get technology previously reserved for billion-dollar corporations, FREE http://pubads.g.doubleclick.net/gampad/clk?id=190641631&iu=/4140/ostg.clktrk _______________________________________________ Valgrind-users mailing list Valgrind-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/valgrind-users