package version up to 1.7.7
[platform/core/uifw/libtdm.git] / ut / stubs / pthread_stubs.h
1 #ifndef _PTHREAD_STUBS_H
2 #define _PTHREAD_STUBS_H
3
4 #include <pthread.h>
5 #include <stdio.h>
6
7 static int PTHREAD_MUTEX_INIT_ERROR;
8
9 static int ut_pthread_mutex_lock(pthread_mutex_t * __mutex) { }
10
11 static int ut_pthread_mutex_unlock(pthread_mutex_t * __mutex) { }
12
13 static int ut_pthread_mutex_init(pthread_mutex_t * __mutex,
14                                                                  const pthread_mutexattr_t * __mutexattr)
15 {
16         if (PTHREAD_MUTEX_INIT_ERROR) {
17                 return PTHREAD_MUTEX_INIT_ERROR;
18         }
19
20         return 0;
21 }
22
23 #endif /* _PTHREAD_STUBS_H */