浏览代码

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

Nathalie Furmento 9 年之前
父节点
当前提交
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;
   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) {
 static __inline int pthread_mutexattr_settype(pthread_mutexattr_t *attr, int type) {
   if (type != PTHREAD_MUTEX_RECURSIVE && type != PTHREAD_MUTEX_ERRORCHECK)
   if (type != PTHREAD_MUTEX_RECURSIVE && type != PTHREAD_MUTEX_ERRORCHECK)
     return EINVAL;
     return EINVAL;