@@ -167,7 +167,6 @@ class EventQueue {
167
167
* events out of irq contexts.
168
168
*
169
169
* @param f Function to execute in the context of the dispatch loop
170
- * @param a0..a4 Arguments to pass to the callback
171
170
* @return A unique id that represents the posted event and can
172
171
* be passed to cancel, or an id of 0 if there is not
173
172
* enough memory to allocate the event.
@@ -185,39 +184,49 @@ class EventQueue {
185
184
}
186
185
187
186
/* * Calls an event on the queue
188
- * @see EventQueue::call
187
+ * @see EventQueue::call
188
+ * @param f Function to execute in the context of the dispatch loop
189
+ * @param a0 Argument to pass to the callback
189
190
*/
190
191
template <typename F, typename A0>
191
192
int call (F f, A0 a0) {
192
193
return call (context10<F, A0>(f, a0));
193
194
}
194
195
195
196
/* * Calls an event on the queue
196
- * @see EventQueue::call
197
+ * @see EventQueue::call
198
+ * @param f Function to execute in the context of the dispatch loop
199
+ * @param a0,a1 Arguments to pass to the callback
197
200
*/
198
201
template <typename F, typename A0, typename A1>
199
202
int call (F f, A0 a0, A1 a1) {
200
203
return call (context20<F, A0, A1>(f, a0, a1));
201
204
}
202
205
203
206
/* * Calls an event on the queue
204
- * @see EventQueue::call
207
+ * @see EventQueue::call
208
+ * @param f Function to execute in the context of the dispatch loop
209
+ * @param a0,a1,a2 Arguments to pass to the callback
205
210
*/
206
211
template <typename F, typename A0, typename A1, typename A2>
207
212
int call (F f, A0 a0, A1 a1, A2 a2) {
208
213
return call (context30<F, A0, A1, A2>(f, a0, a1, a2));
209
214
}
210
215
211
216
/* * Calls an event on the queue
212
- * @see EventQueue::call
217
+ * @see EventQueue::call
218
+ * @param f Function to execute in the context of the dispatch loop
219
+ * @param a0,a1,a2,a3 Arguments to pass to the callback
213
220
*/
214
221
template <typename F, typename A0, typename A1, typename A2, typename A3>
215
222
int call (F f, A0 a0, A1 a1, A2 a2, A3 a3) {
216
223
return call (context40<F, A0, A1, A2, A3>(f, a0, a1, a2, a3));
217
224
}
218
225
219
226
/* * Calls an event on the queue
220
- * @see EventQueue::call
227
+ * @see EventQueue::call
228
+ * @param f Function to execute in the context of the dispatch loop
229
+ * @param a0,a1,a2,a3,a4 Arguments to pass to the callback
221
230
*/
222
231
template <typename F, typename A0, typename A1, typename A2, typename A3, typename A4>
223
232
int call (F f, A0 a0, A1 a1, A2 a2, A3 a3, A4 a4) {
@@ -425,7 +434,6 @@ class EventQueue {
425
434
* events out of irq contexts.
426
435
*
427
436
* @param f Function to execute in the context of the dispatch loop
428
- * @param a0..a4 Arguments to pass to the callback
429
437
* @param ms Time to delay in milliseconds
430
438
* @return A unique id that represents the posted event and can
431
439
* be passed to cancel, or an id of 0 if there is not
@@ -445,39 +453,54 @@ class EventQueue {
445
453
}
446
454
447
455
/* * Calls an event on the queue after a specified delay
448
- * @see EventQueue::call_in
456
+ * @see EventQueue::call_in
457
+ * @param ms Time to delay in milliseconds
458
+ * @param f Function to execute in the context of the dispatch loop
459
+ * @param a0 Argument to pass to the callback
449
460
*/
450
461
template <typename F, typename A0>
451
462
int call_in (int ms, F f, A0 a0) {
452
463
return call_in (ms, context10<F, A0>(f, a0));
453
464
}
454
465
455
466
/* * Calls an event on the queue after a specified delay
456
- * @see EventQueue::call_in
467
+ * @see EventQueue::call_in
468
+ * @param ms Time to delay in milliseconds
469
+ * @param f Function to execute in the context of the dispatch loop
470
+ * @param a0,a1 Arguments to pass to the callback
457
471
*/
458
472
template <typename F, typename A0, typename A1>
459
473
int call_in (int ms, F f, A0 a0, A1 a1) {
460
474
return call_in (ms, context20<F, A0, A1>(f, a0, a1));
461
475
}
462
476
463
477
/* * Calls an event on the queue after a specified delay
464
- * @see EventQueue::call_in
478
+ * @see EventQueue::call_in
479
+ * @param ms Time to delay in milliseconds
480
+ * @param f Function to execute in the context of the dispatch loop
481
+ * @param a0,a1,a2 Arguments to pass to the callback
465
482
*/
466
483
template <typename F, typename A0, typename A1, typename A2>
467
484
int call_in (int ms, F f, A0 a0, A1 a1, A2 a2) {
468
485
return call_in (ms, context30<F, A0, A1, A2>(f, a0, a1, a2));
469
486
}
470
487
471
488
/* * Calls an event on the queue after a specified delay
472
- * @see EventQueue::call_in
489
+ * @see EventQueue::call_in
490
+ * @param ms Time to delay in milliseconds
491
+ * @param f Function to execute in the context of the dispatch loop
492
+ * @param a0,a1,a2,a3 Arguments to pass to the callback
473
493
*/
474
494
template <typename F, typename A0, typename A1, typename A2, typename A3>
475
495
int call_in (int ms, F f, A0 a0, A1 a1, A2 a2, A3 a3) {
476
496
return call_in (ms, context40<F, A0, A1, A2, A3>(f, a0, a1, a2, a3));
477
497
}
478
498
479
499
/* * Calls an event on the queue after a specified delay
480
- * @see EventQueue::call_in
500
+ * @see EventQueue::call_in
501
+ * @param ms Time to delay in milliseconds
502
+ * @param f Function to execute in the context of the dispatch loop
503
+ * @param a0,a1,a2,a3,a4 Arguments to pass to the callback
481
504
*/
482
505
template <typename F, typename A0, typename A1, typename A2, typename A3, typename A4>
483
506
int call_in (int ms, F f, A0 a0, A1 a1, A2 a2, A3 a3, A4 a4) {
@@ -685,7 +708,6 @@ class EventQueue {
685
708
* moving events out of irq contexts.
686
709
*
687
710
* @param f Function to execute in the context of the dispatch loop
688
- * @param a0..a4 Arguments to pass to the callback
689
711
* @param ms Period of the event in milliseconds
690
712
* @return A unique id that represents the posted event and can
691
713
* be passed to cancel, or an id of 0 if there is not
@@ -706,39 +728,54 @@ class EventQueue {
706
728
}
707
729
708
730
/* * Calls an event on the queue periodically
709
- * @see EventQueue::call_every
731
+ * @see EventQueue::call_every
732
+ * @param f Function to execute in the context of the dispatch loop
733
+ * @param a0 Argument to pass to the callback
734
+ * @param ms Period of the event in milliseconds
710
735
*/
711
736
template <typename F, typename A0>
712
737
int call_every (int ms, F f, A0 a0) {
713
738
return call_every (ms, context10<F, A0>(f, a0));
714
739
}
715
740
716
741
/* * Calls an event on the queue periodically
717
- * @see EventQueue::call_every
742
+ * @see EventQueue::call_every
743
+ * @param f Function to execute in the context of the dispatch loop
744
+ * @param a0,a1 Arguments to pass to the callback
745
+ * @param ms Period of the event in milliseconds
718
746
*/
719
747
template <typename F, typename A0, typename A1>
720
748
int call_every (int ms, F f, A0 a0, A1 a1) {
721
749
return call_every (ms, context20<F, A0, A1>(f, a0, a1));
722
750
}
723
751
724
752
/* * Calls an event on the queue periodically
725
- * @see EventQueue::call_every
753
+ * @see EventQueue::call_every
754
+ * @param f Function to execute in the context of the dispatch loop
755
+ * @param a0,a1,a2 Arguments to pass to the callback
756
+ * @param ms Period of the event in milliseconds
726
757
*/
727
758
template <typename F, typename A0, typename A1, typename A2>
728
759
int call_every (int ms, F f, A0 a0, A1 a1, A2 a2) {
729
760
return call_every (ms, context30<F, A0, A1, A2>(f, a0, a1, a2));
730
761
}
731
762
732
763
/* * Calls an event on the queue periodically
733
- * @see EventQueue::call_every
764
+ * @see EventQueue::call_every
765
+ * @param f Function to execute in the context of the dispatch loop
766
+ * @param a0,a1,a2,a3 Arguments to pass to the callback
767
+ * @param ms Period of the event in milliseconds
734
768
*/
735
769
template <typename F, typename A0, typename A1, typename A2, typename A3>
736
770
int call_every (int ms, F f, A0 a0, A1 a1, A2 a2, A3 a3) {
737
771
return call_every (ms, context40<F, A0, A1, A2, A3>(f, a0, a1, a2, a3));
738
772
}
739
773
740
774
/* * Calls an event on the queue periodically
741
- * @see EventQueue::call_every
775
+ * @see EventQueue::call_every
776
+ * @param f Function to execute in the context of the dispatch loop
777
+ * @param a0,a1,a2,a3,a4 Arguments to pass to the callback
778
+ * @param ms Period of the event in milliseconds
742
779
*/
743
780
template <typename F, typename A0, typename A1, typename A2, typename A3, typename A4>
744
781
int call_every (int ms, F f, A0 a0, A1 a1, A2 a2, A3 a3, A4 a4) {
@@ -943,12 +980,8 @@ class EventQueue {
943
980
* callback acts as the target for the event and is executed in the
944
981
* context of the event queue's dispatch loop once posted.
945
982
*
946
- * @param f Function to execute when the event is dispatched
947
- * @param c0..c4 Arguments to bind to the callback, these arguments are
948
- * allocated on an irq-safe allocator from the event queue's
949
- * memory pool. Must be type-compatible with b0..b4, the
950
- * arguments to the underlying callback.
951
- * @return Event that will dispatch on the specific queue
983
+ * @param func Function to execute when the event is dispatched
984
+ * @return Event that will dispatch on the specific queue
952
985
*/
953
986
template <typename R>
954
987
Event<void ()> event (R (*func)());
0 commit comments