projects
/
linux-2.6-block.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
blame
|
history
|
raw
|
HEAD
Merge tag 'regmap-v4.6' of git://git.kernel.org/pub/scm/linux/kernel/git/broonie...
[linux-2.6-block.git]
/
tools
/
lib
/
lockdep
/
tests
/
ABA.c
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
}