repo.or.cz
/
cris-mirror.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Merge branch 'perf-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel...
[cris-mirror.git]
/
tools
/
lib
/
lockdep
/
tests
/
ABA.c
blob
0f782ff404ac65999c8689555967eabb9c6f0e52
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
}