summaryrefslogtreecommitdiffstats
path: root/src/task.h
diff options
context:
space:
mode:
authorMatthias Schiffer <mschiffer@universe-factory.net>2012-02-27 23:12:56 +0100
committerMatthias Schiffer <mschiffer@universe-factory.net>2012-02-27 23:12:56 +0100
commit6c2649ab27f96dcc40a1f01a36a07d1603f39c51 (patch)
tree32e5ddf8ea76619da45cc27578673a15d7399910 /src/task.h
parent5e70122b5481c878aa0773281304c4d68062cf7d (diff)
downloadfastd-6c2649ab27f96dcc40a1f01a36a07d1603f39c51.tar
fastd-6c2649ab27f96dcc40a1f01a36a07d1603f39c51.zip
Add timeout to task queue
Diffstat (limited to 'src/task.h')
-rw-r--r--src/task.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/task.h b/src/task.h
index d816de7..731510b 100644
--- a/src/task.h
+++ b/src/task.h
@@ -60,6 +60,9 @@ typedef union _fastd_task {
fastd_task* fastd_task_get(fastd_context *ctx);
+static inline int fastd_task_timeout(fastd_context *ctx) {
+ return fastd_queue_timeout(&ctx->task_queue);
+}
void fastd_task_put_send_handshake(fastd_context *ctx, const fastd_peer *peer, fastd_buffer buffer);