Sasha Levin | 878f968 | 2013-06-13 18:41:19 -0400 | [diff] [blame] | 1 | #include <liblockdep/mutex.h> |
2 | |||||
3 | void main(void) | ||||
4 | { | ||||
5 | pthread_mutex_t a, b; | ||||
6 | |||||
7 | pthread_mutex_init(&a, NULL); | ||||
8 | pthread_mutex_init(&b, NULL); | ||||
9 | |||||
10 | pthread_mutex_lock(&a); | ||||
11 | pthread_mutex_lock(&b); | ||||
12 | pthread_mutex_lock(&a); | ||||
13 | } |