aboutsummaryrefslogtreecommitdiffhomepage
path: root/iothread.h
diff options
context:
space:
mode:
authorGravatar ridiculousfish <corydoras@ridiculousfish.com>2014-05-04 15:06:40 -0700
committerGravatar ridiculousfish <corydoras@ridiculousfish.com>2014-05-04 15:06:40 -0700
commitf27232bd0aa10be26aeb268b201a6b77bab08a1c (patch)
treea4e89198a5732111b7d27d499ea2030624ce20c2 /iothread.h
parent7e44bcfd8a3b0947bdc7e325671ec5fc4401cb21 (diff)
Initial work on strategy_named_pipe universal notifier.
Diffstat (limited to 'iothread.h')
-rw-r--r--iothread.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/iothread.h b/iothread.h
index 8ac3bd9d..3c07b771 100644
--- a/iothread.h
+++ b/iothread.h
@@ -38,7 +38,12 @@ int iothread_perform(int (*handler)(T *), void (*completionCallback)(T *, int),
return iothread_perform_base((int (*)(void *))handler, (void (*)(void *, int))completionCallback, static_cast<void *>(context));
}
-/** Helper templates */
+template<typename T>
+int iothread_perform(int (*handler)(T *), T *context)
+{
+ return iothread_perform_base((int (*)(void *))handler, (void (*)(void *, int))0, static_cast<void *>(context));
+}
+
template<typename T>
int iothread_perform_on_main(int (*handler)(T *), T *context)
{