I want to use Mutex as shown in the example but I get the “Mutex must
name a type error “

#include <utils/threads.h>

mutable Mutex mLock;<--- compilation error

foo()
{
Mutex::Autolock l(mLock);
// critical section here

}


Any ideas or suggestions on the compiler issue ?

thanks
Venky
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to