A
lgorithmique
N
umérique
D
istribuée
Public GIT Repository
projects
/
simgrid.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Make sure that sthread_inside_simgrid is initially 1 to protect all lib constructors
[simgrid.git]
/
examples
/
sthread
/
pthread-mutex-simple.c
diff --git
a/examples/sthread/pthread-mutex-simple.c
b/examples/sthread/pthread-mutex-simple.c
index
ae928c2
..
f39de63
100644
(file)
--- a/
examples/sthread/pthread-mutex-simple.c
+++ b/
examples/sthread/pthread-mutex-simple.c
@@
-27,8
+27,8
@@
int main(int argc, char* argv[])
pthread_mutex_init(&mutex, NULL);
pthread_t thread1, thread2;
pthread_mutex_init(&mutex, NULL);
pthread_t thread1, thread2;
- fprintf(stderr, "prout\n");
pthread_create(&thread1, NULL, thread1_fun, NULL);
pthread_create(&thread1, NULL, thread1_fun, NULL);
+ fprintf(stderr, "here\n");
pthread_create(&thread2, NULL, thread2_fun, NULL);
// pthread_join(thread1, NULL);
// pthread_join(thread2, NULL);
pthread_create(&thread2, NULL, thread2_fun, NULL);
// pthread_join(thread1, NULL);
// pthread_join(thread2, NULL);