Просмотр исходного кода

include/pthread_win32/pthread.h: add implementation for pthread_mutexattr_destroy()

Nathalie Furmento лет назад: 9
Родитель
Сommit
8ced8f0f01
1 измененных файлов с 5 добавлено и 0 удалено
  1. 5 0
      include/pthread_win32/pthread.h

+ 5 - 0
include/pthread_win32/pthread.h

@@ -176,6 +176,11 @@ static __inline int pthread_mutexattr_init(pthread_mutexattr_t *attr) {
   return 0;
 }
 
+static __inline int pthread_mutexattr_destroy(pthread_mutexattr_t *attr) {
+  *attr = -1;
+  return 0;
+}
+
 static __inline int pthread_mutexattr_settype(pthread_mutexattr_t *attr, int type) {
   if (type != PTHREAD_MUTEX_RECURSIVE && type != PTHREAD_MUTEX_ERRORCHECK)
     return EINVAL;