git: https://android.googlesource.com/kernel/common branch: android-4.9 commit: 03fcc2fe71308c2d164b4e6cbfc738c63e670444
14 lines
213 B
C
14 lines
213 B
C
#include <liblockdep/mutex.h>
|
|
|
|
void main(void)
|
|
{
|
|
pthread_mutex_t a, b;
|
|
|
|
pthread_mutex_init(&a, NULL);
|
|
pthread_mutex_init(&b, NULL);
|
|
|
|
pthread_mutex_lock(&a);
|
|
pthread_mutex_lock(&b);
|
|
pthread_mutex_lock(&a);
|
|
}
|