@@ -45,7 +45,10 @@ class Event<void()> {
45
45
*
46
46
* @param q Event queue to dispatch on
47
47
* @param f Function to execute when the event is dispatched
48
- * @param a0..a4 Arguments to pass to the callback
48
+ * @param c0..c4 Arguments to bind to the callback, these arguments are
49
+ * allocated on an irq-safe allocator from the event queue's
50
+ * memory pool. Must be type-compatible with b0..b4, the
51
+ * arguments to the underlying callback.
49
52
*/
50
53
template <typename F>
51
54
Event (EventQueue *q, F f) {
@@ -438,7 +441,10 @@ class Event<void(A0)> {
438
441
*
439
442
* @param q Event queue to dispatch on
440
443
* @param f Function to execute when the event is dispatched
441
- * @param a0..a4 Arguments to pass to the callback
444
+ * @param c0..c4 Arguments to bind to the callback, these arguments are
445
+ * allocated on an irq-safe allocator from the event queue's
446
+ * memory pool. Must be type-compatible with b0..b4, the
447
+ * arguments to the underlying callback.
442
448
*/
443
449
template <typename F>
444
450
Event (EventQueue *q, F f) {
@@ -831,7 +837,10 @@ class Event<void(A0, A1)> {
831
837
*
832
838
* @param q Event queue to dispatch on
833
839
* @param f Function to execute when the event is dispatched
834
- * @param a0..a4 Arguments to pass to the callback
840
+ * @param c0..c4 Arguments to bind to the callback, these arguments are
841
+ * allocated on an irq-safe allocator from the event queue's
842
+ * memory pool. Must be type-compatible with b0..b4, the
843
+ * arguments to the underlying callback.
835
844
*/
836
845
template <typename F>
837
846
Event (EventQueue *q, F f) {
@@ -1224,7 +1233,10 @@ class Event<void(A0, A1, A2)> {
1224
1233
*
1225
1234
* @param q Event queue to dispatch on
1226
1235
* @param f Function to execute when the event is dispatched
1227
- * @param a0..a4 Arguments to pass to the callback
1236
+ * @param c0..c4 Arguments to bind to the callback, these arguments are
1237
+ * allocated on an irq-safe allocator from the event queue's
1238
+ * memory pool. Must be type-compatible with b0..b4, the
1239
+ * arguments to the underlying callback.
1228
1240
*/
1229
1241
template <typename F>
1230
1242
Event (EventQueue *q, F f) {
@@ -1617,7 +1629,10 @@ class Event<void(A0, A1, A2, A3)> {
1617
1629
*
1618
1630
* @param q Event queue to dispatch on
1619
1631
* @param f Function to execute when the event is dispatched
1620
- * @param a0..a4 Arguments to pass to the callback
1632
+ * @param c0..c4 Arguments to bind to the callback, these arguments are
1633
+ * allocated on an irq-safe allocator from the event queue's
1634
+ * memory pool. Must be type-compatible with b0..b4, the
1635
+ * arguments to the underlying callback.
1621
1636
*/
1622
1637
template <typename F>
1623
1638
Event (EventQueue *q, F f) {
@@ -2010,7 +2025,10 @@ class Event<void(A0, A1, A2, A3, A4)> {
2010
2025
*
2011
2026
* @param q Event queue to dispatch on
2012
2027
* @param f Function to execute when the event is dispatched
2013
- * @param a0..a4 Arguments to pass to the callback
2028
+ * @param c0..c4 Arguments to bind to the callback, these arguments are
2029
+ * allocated on an irq-safe allocator from the event queue's
2030
+ * memory pool. Must be type-compatible with b0..b4, the
2031
+ * arguments to the underlying callback.
2014
2032
*/
2015
2033
template <typename F>
2016
2034
Event (EventQueue *q, F f) {
0 commit comments