Staging
v0.5.1
https://github.com/torvalds/linux
Raw File
Tip revision: cc4a41fe5541a73019a864883297bd5043aa6d98 authored by Linus Torvalds on 28 August 2017, 00:20:40 UTC
Linux 4.13-rc7
Tip revision: cc4a41f
ABBCCA.c
#include <liblockdep/mutex.h>
#include "common.h"

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

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

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