Procházet zdrojové kódy

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

Nathalie Furmento před 9 roky
rodič
revize
8ced8f0f01
1 změnil soubory, kde provedl 5 přidání a 0 odebrání
  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;