summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 5f22a8a)
raw | patch | inline | side by side (parent: 5f22a8a)
author | Thomas Vander Stichele <thomas@apestaart.org> | |
Fri, 17 Dec 2004 11:09:34 +0000 (11:09 +0000) | ||
committer | Thomas Vander Stichele <thomas@apestaart.org> | |
Fri, 17 Dec 2004 11:09:34 +0000 (11:09 +0000) |
Original commit message from CVS:
make the test slightly less expensive
make the test slightly less expensive
tests/old/testsuite/threads/signals.c | patch | blob | history | |
testsuite/threads/signals.c | patch | blob | history |
index 8fc0cd3d85c38b09eb0456cc88191e49d3d0067d..e4fe4ce100f9d8010ed8a717a9399c3f1f9b1a0f 100644 (file)
gst_test_do_signal2 (test);
if (TESTNUM == 3)
gst_test_do_prop (test);
- if ((i++ % 10000) == 0)
+ if ((i++ % 10000) == 0) {
g_print (".");
+ g_usleep (1); /* context switch */
+ }
}
return NULL;
test1 = g_object_new (GST_TYPE_TEST, NULL);
test2 = g_object_new (GST_TYPE_TEST, NULL);
- for (i = 0; i < 100; i++) {
+ for (i = 0; i < 20; i++) {
g_thread_create ((GThreadFunc) run_thread, test1, TRUE, NULL);
g_thread_create ((GThreadFunc) run_thread, test2, TRUE, NULL);
}
index 8fc0cd3d85c38b09eb0456cc88191e49d3d0067d..e4fe4ce100f9d8010ed8a717a9399c3f1f9b1a0f 100644 (file)
gst_test_do_signal2 (test);
if (TESTNUM == 3)
gst_test_do_prop (test);
- if ((i++ % 10000) == 0)
+ if ((i++ % 10000) == 0) {
g_print (".");
+ g_usleep (1); /* context switch */
+ }
}
return NULL;
test1 = g_object_new (GST_TYPE_TEST, NULL);
test2 = g_object_new (GST_TYPE_TEST, NULL);
- for (i = 0; i < 100; i++) {
+ for (i = 0; i < 20; i++) {
g_thread_create ((GThreadFunc) run_thread, test1, TRUE, NULL);
g_thread_create ((GThreadFunc) run_thread, test2, TRUE, NULL);
}