aboutsummaryrefslogtreecommitdiffhomepage
path: root/iothread.cpp
diff options
context:
space:
mode:
authorGravatar ridiculousfish <corydoras@ridiculousfish.com>2012-03-25 23:31:03 -0700
committerGravatar ridiculousfish <corydoras@ridiculousfish.com>2012-03-25 23:31:03 -0700
commit31b7d076b7bff8d7bb81e6a1fff58755b7baa10b (patch)
tree98744caa4771d845dccf0ae547aeafd4a01190b8 /iothread.cpp
parenta11687fc5c984a18d1d2071c1f88d0a12c5b2f5d (diff)
Remove some dead variables.
Fix screwy output for invalid tilde expansion in expand.cpp Some cleanup per clang static analyzer
Diffstat (limited to 'iothread.cpp')
-rw-r--r--iothread.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/iothread.cpp b/iothread.cpp
index 946d3a09..6b61b442 100644
--- a/iothread.cpp
+++ b/iothread.cpp
@@ -203,10 +203,15 @@ void iothread_drain_all(void) {
if (s_active_thread_count == 0)
return;
int thread_count = s_active_thread_count;
+#define TIME_DRAIN 0
+#if TIME_DRAIN
double now = timef();
+#endif
while (s_active_thread_count > 0) {
iothread_service_completion();
}
+#if TIME_DRAIN
double after = timef();
- //printf("(Waited %.02f msec for %d thread(s) to drain)\n", 1000 * (after - now), thread_count);
+ printf("(Waited %.02f msec for %d thread(s) to drain)\n", 1000 * (after - now), thread_count);
+#endif
}