fix PiMutex compile error

Signed-off-by: Marquez_esta <liuchungang@hisilicon.com>
This commit is contained in:
Marquez_esta
2026-01-04 11:07:45 +08:00
parent 456c15f06d
commit fa1ff4ce44
+1 -1
View File
@@ -32,7 +32,7 @@ class PiMutex : public Mutex {
public:
PiMutex()
{
if constexpr (HasType<Mutex> && std::is_same_v<Mutex::native_handle_type, pthread_mutex_t*>) {
if constexpr (HasType<Mutex>::value && std::is_same_v<typename Mutex::native_handle_type, pthread_mutex_t*>) {
typename Mutex::native_handle_type handle = Mutex::native_handle();
pthread_mutexattr_t attr;
pthread_mutexattr_init(&attr);