libubox: tests: add more blobmsg/json test cases
[project/libubox.git] / runqueue.h
index f182e4e347ac37f13b5c5767831ee80c5fbbaacb..9728c9c5c86ba3a0af4277965479660d7e8f4eb9 100644 (file)
@@ -56,14 +56,14 @@ struct runqueue_task_type {
         * called to request cancelling a task
         *
         * int type is used as an optional hint for the method to be used when
-        * cancelling the task, e.g. a signal number for processes. Calls
-        * runqueue_task_complete when done.
+        * cancelling the task, e.g. a signal number for processes. The cancel
+        * callback should call runqueue_task_complete when done.
         */
        void (*cancel)(struct runqueue *q, struct runqueue_task *t, int type);
 
        /*
         * called to kill a task. must not make any calls to runqueue_task_complete,
-        * it has already been removed from the list.
+        * which will be called after this returns.
         */
        void (*kill)(struct runqueue *q, struct runqueue_task *t);
 };