소스 검색

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;
 }
 
+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;