Use iothread_perform variant that doesn't take a completion callback

Removes some ugly NULL casts
This commit is contained in:
ridiculousfish
2015-01-08 11:02:40 -08:00
parent 6e2132e01f
commit 20974edc14
2 changed files with 4 additions and 3 deletions

View File

@@ -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)
{