@@ -179,7 +179,7 @@ class Event<void()> {
179
179
* be passed to EventQueue::cancel, or an id of 0 if
180
180
* there is not enough memory to allocate the event.
181
181
*/
182
- int post () {
182
+ int post () const {
183
183
if (!_event) {
184
184
return 0 ;
185
185
}
@@ -192,7 +192,7 @@ class Event<void()> {
192
192
*
193
193
* @param a0..a4 Arguments to pass to the event
194
194
*/
195
- void call () {
195
+ void call () const {
196
196
int id = post ();
197
197
MBED_ASSERT (id);
198
198
}
@@ -201,7 +201,7 @@ class Event<void()> {
201
201
*
202
202
* @param a0..a4 Arguments to pass to the event
203
203
*/
204
- void operator ()() {
204
+ void operator ()() const {
205
205
return call ();
206
206
}
207
207
@@ -225,7 +225,7 @@ class Event<void()> {
225
225
* function does not garuntee that the event will not execute after it
226
226
* returns, as the event may have already begun executing.
227
227
*/
228
- void cancel () {
228
+ void cancel () const {
229
229
if (_event) {
230
230
equeue_cancel (_event->equeue , _event->id );
231
231
}
@@ -398,7 +398,7 @@ class Event<void(A0)> {
398
398
* be passed to EventQueue::cancel, or an id of 0 if
399
399
* there is not enough memory to allocate the event.
400
400
*/
401
- int post (A0 a0) {
401
+ int post (A0 a0) const {
402
402
if (!_event) {
403
403
return 0 ;
404
404
}
@@ -411,7 +411,7 @@ class Event<void(A0)> {
411
411
*
412
412
* @param a0..a4 Arguments to pass to the event
413
413
*/
414
- void call (A0 a0) {
414
+ void call (A0 a0) const {
415
415
int id = post (a0);
416
416
MBED_ASSERT (id);
417
417
}
@@ -420,7 +420,7 @@ class Event<void(A0)> {
420
420
*
421
421
* @param a0..a4 Arguments to pass to the event
422
422
*/
423
- void operator ()(A0 a0) {
423
+ void operator ()(A0 a0) const {
424
424
return call (a0);
425
425
}
426
426
@@ -444,7 +444,7 @@ class Event<void(A0)> {
444
444
* function does not garuntee that the event will not execute after it
445
445
* returns, as the event may have already begun executing.
446
446
*/
447
- void cancel () {
447
+ void cancel () const {
448
448
if (_event) {
449
449
equeue_cancel (_event->equeue , _event->id );
450
450
}
@@ -617,7 +617,7 @@ class Event<void(A0, A1)> {
617
617
* be passed to EventQueue::cancel, or an id of 0 if
618
618
* there is not enough memory to allocate the event.
619
619
*/
620
- int post (A0 a0, A1 a1) {
620
+ int post (A0 a0, A1 a1) const {
621
621
if (!_event) {
622
622
return 0 ;
623
623
}
@@ -630,7 +630,7 @@ class Event<void(A0, A1)> {
630
630
*
631
631
* @param a0..a4 Arguments to pass to the event
632
632
*/
633
- void call (A0 a0, A1 a1) {
633
+ void call (A0 a0, A1 a1) const {
634
634
int id = post (a0, a1);
635
635
MBED_ASSERT (id);
636
636
}
@@ -639,7 +639,7 @@ class Event<void(A0, A1)> {
639
639
*
640
640
* @param a0..a4 Arguments to pass to the event
641
641
*/
642
- void operator ()(A0 a0, A1 a1) {
642
+ void operator ()(A0 a0, A1 a1) const {
643
643
return call (a0, a1);
644
644
}
645
645
@@ -663,7 +663,7 @@ class Event<void(A0, A1)> {
663
663
* function does not garuntee that the event will not execute after it
664
664
* returns, as the event may have already begun executing.
665
665
*/
666
- void cancel () {
666
+ void cancel () const {
667
667
if (_event) {
668
668
equeue_cancel (_event->equeue , _event->id );
669
669
}
@@ -836,7 +836,7 @@ class Event<void(A0, A1, A2)> {
836
836
* be passed to EventQueue::cancel, or an id of 0 if
837
837
* there is not enough memory to allocate the event.
838
838
*/
839
- int post (A0 a0, A1 a1, A2 a2) {
839
+ int post (A0 a0, A1 a1, A2 a2) const {
840
840
if (!_event) {
841
841
return 0 ;
842
842
}
@@ -849,7 +849,7 @@ class Event<void(A0, A1, A2)> {
849
849
*
850
850
* @param a0..a4 Arguments to pass to the event
851
851
*/
852
- void call (A0 a0, A1 a1, A2 a2) {
852
+ void call (A0 a0, A1 a1, A2 a2) const {
853
853
int id = post (a0, a1, a2);
854
854
MBED_ASSERT (id);
855
855
}
@@ -858,7 +858,7 @@ class Event<void(A0, A1, A2)> {
858
858
*
859
859
* @param a0..a4 Arguments to pass to the event
860
860
*/
861
- void operator ()(A0 a0, A1 a1, A2 a2) {
861
+ void operator ()(A0 a0, A1 a1, A2 a2) const {
862
862
return call (a0, a1, a2);
863
863
}
864
864
@@ -882,7 +882,7 @@ class Event<void(A0, A1, A2)> {
882
882
* function does not garuntee that the event will not execute after it
883
883
* returns, as the event may have already begun executing.
884
884
*/
885
- void cancel () {
885
+ void cancel () const {
886
886
if (_event) {
887
887
equeue_cancel (_event->equeue , _event->id );
888
888
}
@@ -1055,7 +1055,7 @@ class Event<void(A0, A1, A2, A3)> {
1055
1055
* be passed to EventQueue::cancel, or an id of 0 if
1056
1056
* there is not enough memory to allocate the event.
1057
1057
*/
1058
- int post (A0 a0, A1 a1, A2 a2, A3 a3) {
1058
+ int post (A0 a0, A1 a1, A2 a2, A3 a3) const {
1059
1059
if (!_event) {
1060
1060
return 0 ;
1061
1061
}
@@ -1068,7 +1068,7 @@ class Event<void(A0, A1, A2, A3)> {
1068
1068
*
1069
1069
* @param a0..a4 Arguments to pass to the event
1070
1070
*/
1071
- void call (A0 a0, A1 a1, A2 a2, A3 a3) {
1071
+ void call (A0 a0, A1 a1, A2 a2, A3 a3) const {
1072
1072
int id = post (a0, a1, a2, a3);
1073
1073
MBED_ASSERT (id);
1074
1074
}
@@ -1077,7 +1077,7 @@ class Event<void(A0, A1, A2, A3)> {
1077
1077
*
1078
1078
* @param a0..a4 Arguments to pass to the event
1079
1079
*/
1080
- void operator ()(A0 a0, A1 a1, A2 a2, A3 a3) {
1080
+ void operator ()(A0 a0, A1 a1, A2 a2, A3 a3) const {
1081
1081
return call (a0, a1, a2, a3);
1082
1082
}
1083
1083
@@ -1101,7 +1101,7 @@ class Event<void(A0, A1, A2, A3)> {
1101
1101
* function does not garuntee that the event will not execute after it
1102
1102
* returns, as the event may have already begun executing.
1103
1103
*/
1104
- void cancel () {
1104
+ void cancel () const {
1105
1105
if (_event) {
1106
1106
equeue_cancel (_event->equeue , _event->id );
1107
1107
}
@@ -1274,7 +1274,7 @@ class Event<void(A0, A1, A2, A3, A4)> {
1274
1274
* be passed to EventQueue::cancel, or an id of 0 if
1275
1275
* there is not enough memory to allocate the event.
1276
1276
*/
1277
- int post (A0 a0, A1 a1, A2 a2, A3 a3, A4 a4) {
1277
+ int post (A0 a0, A1 a1, A2 a2, A3 a3, A4 a4) const {
1278
1278
if (!_event) {
1279
1279
return 0 ;
1280
1280
}
@@ -1287,7 +1287,7 @@ class Event<void(A0, A1, A2, A3, A4)> {
1287
1287
*
1288
1288
* @param a0..a4 Arguments to pass to the event
1289
1289
*/
1290
- void call (A0 a0, A1 a1, A2 a2, A3 a3, A4 a4) {
1290
+ void call (A0 a0, A1 a1, A2 a2, A3 a3, A4 a4) const {
1291
1291
int id = post (a0, a1, a2, a3, a4);
1292
1292
MBED_ASSERT (id);
1293
1293
}
@@ -1296,7 +1296,7 @@ class Event<void(A0, A1, A2, A3, A4)> {
1296
1296
*
1297
1297
* @param a0..a4 Arguments to pass to the event
1298
1298
*/
1299
- void operator ()(A0 a0, A1 a1, A2 a2, A3 a3, A4 a4) {
1299
+ void operator ()(A0 a0, A1 a1, A2 a2, A3 a3, A4 a4) const {
1300
1300
return call (a0, a1, a2, a3, a4);
1301
1301
}
1302
1302
@@ -1320,7 +1320,7 @@ class Event<void(A0, A1, A2, A3, A4)> {
1320
1320
* function does not garuntee that the event will not execute after it
1321
1321
* returns, as the event may have already begun executing.
1322
1322
*/
1323
- void cancel () {
1323
+ void cancel () const {
1324
1324
if (_event) {
1325
1325
equeue_cancel (_event->equeue , _event->id );
1326
1326
}
0 commit comments