Thread ID is opaque type pthread_t, it may not be compatible with integer,
and may integer with valid id `0`.
Change to store mutex owner thread ID as `pthread_t` type with valid flag
and compare with `pthread_equal()`,
and don't try to print it.
Signed-off-by: OBATA Akio <obache@wizdas.com>
argument. This fixes FTBFS of examples caused by previous ambiguous
call and solves bug 3021.
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
2 years ago
5 changed files with 1043 additions and 992 deletions