|
From: zhouxu(NUDT) <zho...@gm...> - 2011-03-10 12:29:49
|
Hi, I want to build a Valgrind tool which can instrument a multi-thread program. It seems I can't use pthread library (such as pthread_mutex_lock) directly in my tool. As to my understanding, when the hosted program is a multi-thread program, the Valgrind tool's code may race. So how can I lock a shared memory in my tool? Thank you. -- zhouxu |