]> rtime.felk.cvut.cz Git - frescor/fwp.git/commitdiff
wme_test: fixed termination under FRSH
authorMichal Sojka <sojkam1@fel.cvut.cz>
Thu, 13 Aug 2009 09:02:25 +0000 (11:02 +0200)
committerMichal Sojka <sojkam1@fel.cvut.cz>
Thu, 13 Aug 2009 09:02:25 +0000 (11:02 +0200)
wme_test/wclient.c

index 592e5f545d8752363d1802237f07f333f33dccdd..8c1585bfc1d55226934b3e7b902bfe53f8ccdaca 100644 (file)
@@ -1192,6 +1192,10 @@ int main(int argc, char *argv[])
        }
 
        end_gui();
+
+       fprintf(stderr, "\nWaiting for threads to finish\n");
+       wait_for_all_threads_to_finish();
+
 #ifdef WITH_FWP
        for (i=0; i < nr_streams; i++) {
                if (streams[i].vres)
@@ -1201,9 +1205,6 @@ int main(int argc, char *argv[])
        }
 #endif
 
-       fprintf(stderr, "\nWaiting for threads to finish\n");
-       wait_for_all_threads_to_finish();
-
        struct timespec ts;
        uint64_t end_timestamp, measure_length;
        clock_gettime(CLOCK_REALTIME,&ts);