aboutsummaryrefslogtreecommitdiffhomepage
path: root/iothread.h
diff options
context:
space:
mode:
authorGravatar ridiculousfish <corydoras@ridiculousfish.com>2015-01-08 11:02:40 -0800
committerGravatar ridiculousfish <corydoras@ridiculousfish.com>2015-01-14 10:05:07 -0800
commit20974edc14f43822084bf584c3d19fe23e80247b (patch)
treec1b6a8c2f2ad90993d76b5b39f305438d9a2fd21 /iothread.h
parent6e2132e01f08123436011f4bed07548d23784560 (diff)
Use iothread_perform variant that doesn't take a completion callback
Removes some ugly NULL casts
Diffstat (limited to 'iothread.h')
-rw-r--r--iothread.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/iothread.h b/iothread.h
index 3c07b771..bdec2195 100644
--- a/iothread.h
+++ b/iothread.h
@@ -38,6 +38,7 @@ 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));
}
+/* Variant that takes no completion callback */
template<typename T>
int iothread_perform(int (*handler)(T *), T *context)
{