diff options
author | ridiculousfish <corydoras@ridiculousfish.com> | 2014-05-04 15:06:40 -0700 |
---|---|---|
committer | ridiculousfish <corydoras@ridiculousfish.com> | 2014-05-04 15:06:40 -0700 |
commit | f27232bd0aa10be26aeb268b201a6b77bab08a1c (patch) | |
tree | a4e89198a5732111b7d27d499ea2030624ce20c2 /iothread.h | |
parent | 7e44bcfd8a3b0947bdc7e325671ec5fc4401cb21 (diff) |
Initial work on strategy_named_pipe universal notifier.
Diffstat (limited to 'iothread.h')
-rw-r--r-- | iothread.h | 7 |
1 files changed, 6 insertions, 1 deletions
@@ -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) { |