mirror of
https://github.com/openharmony/resourceschedule_qos_manager.git
synced 2026-07-01 04:18:38 -04:00
fix PiMutex compile error
Signed-off-by: Marquez_esta <liuchungang@hisilicon.com>
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user