Staging
v0.5.1
https://github.com/torvalds/linux
Raw File
Tip revision: fc14f9c1272f62c3e8d01300f52467c0d9af50f9 authored by Linus Torvalds on 17 November 2014, 00:36:20 UTC
Linux 3.18-rc5
Tip revision: fc14f9c
ABCDBDDA.c
#include <liblockdep/mutex.h>
#include "common.h"

void main(void)
{
	pthread_mutex_t a, b, c, d;

	pthread_mutex_init(&a, NULL);
	pthread_mutex_init(&b, NULL);
	pthread_mutex_init(&c, NULL);
	pthread_mutex_init(&d, NULL);

	LOCK_UNLOCK_2(a, b);
	LOCK_UNLOCK_2(c, d);
	LOCK_UNLOCK_2(b, d);
	LOCK_UNLOCK_2(d, a);
}
back to top