mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-06-06 08:51:14 -03:00
Use iothread_perform variant that doesn't take a completion callback
Removes some ugly NULL casts
This commit is contained in:
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user