diff options
Diffstat (limited to 'include/qntan/Qntan.h')
| -rw-r--r-- | include/qntan/Qntan.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/include/qntan/Qntan.h b/include/qntan/Qntan.h index b7e9d72..50abf24 100644 --- a/include/qntan/Qntan.h +++ b/include/qntan/Qntan.h @@ -250,8 +250,10 @@ struct Qntan_Executor { struct Qntan_Scheduler { /**/ void (*onceAfterMs)( - struct Qntan_Scheduler**, int delayMs, void(*fn)(Qntan_Cls), Qntan_Cls ); + struct Qntan_Scheduler**, int delayMs, void(*fn)(int err,Qntan_Cls), Qntan_Cls ); /* Schedule 'fn' to be called after 'delayMs' milliseconds. + * `err` holds negative values on error. For example it could be + * `-ECANCELED` if the scheduled task got canceled. * TODO: Specify if time refers to wall-clock, monotonic, etc. For now this * behavior is implementation-defined, BUT MAY IT WILL BE SPECIFIED HERE IN * FUTURE! |
