GIT.Harvie.CZ
/
mirrors
/
Programs.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Implementace vyhradniho rezimu
[mirrors/Programs.git]
/
c
/
pthread_extra
/
test_pause.c
diff --git
a/c/pthread_extra/test_pause.c
b/c/pthread_extra/test_pause.c
index f17be8a3de72c378780be4903f8e7ea8be9eb2b1..ed60fcc6d187ae32501f00378033f512921ba8c8 100644
(file)
--- a/
c/pthread_extra/test_pause.c
+++ b/
c/pthread_extra/test_pause.c
@@
-54,6
+54,13
@@
int main() {
pthread_unpause(a);
pthread_unpause(b);
sleep(1);
+
+ printf("SWITCH MAIN ONLY:\n");
+ pthread_pause_all();
+ sleep(1);
+ printf("SWITCH MAIN A+B:\n");
+ pthread_unpause_all();
+ sleep(1);
}
pthread_join(a, NULL);
This page took
0.46956 seconds
and
4
git commands to generate.