@@ -209,7 +209,7 @@ class EventQueue : private mbed::NonCopyable<EventQueue> {
209
209
* // events are simple callbacks
210
210
* queue.call(printf, "called immediately\n");
211
211
*
212
- * // events are executed by the dispatch method
212
+ * // the dispatch method executes events
213
213
* queue.dispatch();
214
214
* }
215
215
* @endcode
@@ -219,19 +219,19 @@ class EventQueue : private mbed::NonCopyable<EventQueue> {
219
219
220
220
/* * Calls an event on the queue
221
221
*
222
- * The specified callback will be executed in the context of the event
222
+ * The specified callback is executed in the context of the event
223
223
* queue's dispatch loop.
224
224
*
225
- * The call function is irq safe and can act as a mechanism for moving
226
- * events out of irq contexts.
225
+ * The call function is IRQ safe and can act as a mechanism for moving
226
+ * events out of IRQ contexts.
227
227
*
228
228
* @param obj Object to call with the member function
229
229
* @param method Member function to execute in the context of the dispatch loop
230
230
* @param args Arguments to pass to the callback
231
- * @return A unique id that represents the posted event and can
232
- * be passed to cancel, or an id of 0 if there is not
231
+ * @return A unique ID that represents the posted event and can
232
+ * be passed to cancel, or an ID of 0 if there is not
233
233
* enough memory to allocate the event.
234
- * Returned id will remain valid until event has finished
234
+ * Returned ID remains valid until event has finished
235
235
* executing.
236
236
*
237
237
* @code
@@ -258,7 +258,7 @@ class EventQueue : private mbed::NonCopyable<EventQueue> {
258
258
* // with provided parameter
259
259
* queue.call(&handler_cb, &EventHandler::handler, 2);
260
260
*
261
- * // events are executed by the dispatch method
261
+ * // the dispath method executes events
262
262
* queue.dispatch();
263
263
* }
264
264
* @endcode
@@ -268,16 +268,16 @@ class EventQueue : private mbed::NonCopyable<EventQueue> {
268
268
269
269
/* * Calls an event on the queue after a specified delay
270
270
*
271
- * The specified callback will be executed in the context of the event
271
+ * The specified callback is executed in the context of the event
272
272
* queue's dispatch loop.
273
273
*
274
- * The call_in function is irq safe and can act as a mechanism for moving
275
- * events out of irq contexts.
274
+ * The call_in function is IRQ safe and can act as a mechanism for moving
275
+ * events out of IRQ contexts.
276
276
*
277
277
* @param ms Time to delay in milliseconds
278
278
* @param args Arguments to pass to the callback
279
- * @return A unique id that represents the posted event and can
280
- * be passed to cancel, or an id of 0 if there is not
279
+ * @return A unique ID that represents the posted event and can
280
+ * be passed to cancel, or an ID of 0 if there is not
281
281
* enough memory to allocate the event.
282
282
*
283
283
* @code
@@ -290,7 +290,7 @@ class EventQueue : private mbed::NonCopyable<EventQueue> {
290
290
* // events are simple callbacks
291
291
* queue.call_in(2000, printf, "called in 2 seconds\n");
292
292
*
293
- * // events are executed by the dispatch method
293
+ * // the dispatch methods executes events
294
294
* queue.dispatch();
295
295
* }
296
296
* @endcode
@@ -300,18 +300,18 @@ class EventQueue : private mbed::NonCopyable<EventQueue> {
300
300
301
301
/* * Calls an event on the queue after a specified delay
302
302
*
303
- * The specified callback will be executed in the context of the event
303
+ * The specified callback is executed in the context of the event
304
304
* queue's dispatch loop.
305
305
*
306
- * The call_in function is irq safe and can act as a mechanism for moving
307
- * events out of irq contexts.
306
+ * The call_in function is IRQ safe and can act as a mechanism for moving
307
+ * events out of IRQ contexts.
308
308
*
309
309
* @param ms Time to delay in milliseconds
310
310
* @param obj Object to call with the member function
311
311
* @param method Member function to execute in the context of the dispatch loop
312
312
* @param args Arguments to pass to the callback
313
- * @return A unique id that represents the posted event and can
314
- * be passed to cancel, or an id of 0 if there is not
313
+ * @return A unique ID that represents the posted event and can
314
+ * be passed to cancel, or an ID of 0 if there is not
315
315
* enough memory to allocate the event.
316
316
*
317
317
* @code
@@ -338,7 +338,7 @@ class EventQueue : private mbed::NonCopyable<EventQueue> {
338
338
* // with provided parameter
339
339
* queue.call_in(2000, &handler_cb, &EventHandler::handler, 4);
340
340
*
341
- * // events are executed by the dispatch method
341
+ * // the dispatch method executes events
342
342
* queue.dispatch();
343
343
* }
344
344
* @endcode
@@ -351,17 +351,17 @@ class EventQueue : private mbed::NonCopyable<EventQueue> {
351
351
* @note The first call_every event occurs after the specified delay.
352
352
* To create a periodic event that fires immediately, @see Event.
353
353
*
354
- * The specified callback will be executed in the context of the event
354
+ * The specified callback is executed in the context of the event
355
355
* queue's dispatch loop.
356
356
*
357
- * The call_every function is irq safe and can act as a mechanism for
358
- * moving events out of irq contexts.
357
+ * The call_every function is IRQ safe and can act as a mechanism for
358
+ * moving events out of IRQ contexts.
359
359
*
360
360
* @param ms Period of the event in milliseconds
361
361
* @param f Function to execute in the context of the dispatch loop
362
362
* @param args Arguments to pass to the callback
363
- * @return A unique id that represents the posted event and can
364
- * be passed to cancel, or an id of 0 if there is not
363
+ * @return A unique ID that represents the posted event and can
364
+ * be passed to cancel, or an ID of 0 if there is not
365
365
* enough memory to allocate the event.
366
366
*
367
367
* @code
@@ -384,7 +384,7 @@ class EventQueue : private mbed::NonCopyable<EventQueue> {
384
384
* // events are simple callbacks, call every 2 seconds
385
385
* queue.call_every(2000, printf, "Calling every 2 seconds\n");
386
386
*
387
- * // events are executed by the dispatch method
387
+ * // the dispatch method executes events
388
388
* queue.dispatch();
389
389
* }
390
390
* @endcode
@@ -397,11 +397,11 @@ class EventQueue : private mbed::NonCopyable<EventQueue> {
397
397
* @note The first call_every event occurs after the specified delay.
398
398
* To create a periodic event that fires immediately, @see Event.
399
399
*
400
- * The specified callback will be executed in the context of the event
400
+ * The specified callback is executed in the context of the event
401
401
* queue's dispatch loop.
402
402
*
403
- * The call_every function is irq safe and can act as a mechanism for
404
- * moving events out of irq contexts.
403
+ * The call_every function is IRQ safe and can act as a mechanism for
404
+ * moving events out of IRQ contexts.
405
405
*
406
406
* @param ms Period of the event in milliseconds
407
407
* @param obj Object to call with the member function
@@ -432,7 +432,7 @@ class EventQueue : private mbed::NonCopyable<EventQueue> {
432
432
* // with provided parameter
433
433
* queue.call_every(2000, &handler_cb, &EventHandler::handler, 6);
434
434
*
435
- * // events are executed by the dispatch method
435
+ * // the dispatch method executes events
436
436
* queue.dispatch();
437
437
* }
438
438
* @endcode
@@ -448,7 +448,7 @@ class EventQueue : private mbed::NonCopyable<EventQueue> {
448
448
*
449
449
* @param func Function to execute when the event is dispatched
450
450
* @param args Arguments to pass to the callback
451
- * @return Event that will dispatch on the specific queue
451
+ * @return Event that dispatches on the specific queue
452
452
*
453
453
* @code
454
454
* #include "mbed.h"
@@ -471,7 +471,7 @@ class EventQueue : private mbed::NonCopyable<EventQueue> {
471
471
* // Post the event with paramter 8
472
472
* e.post(8);
473
473
*
474
- * // Events are executed by the dispatch method
474
+ * // The dispatch method executes events
475
475
* queue.dispatch();
476
476
*
477
477
* e2.post(2);
@@ -492,7 +492,7 @@ class EventQueue : private mbed::NonCopyable<EventQueue> {
492
492
* @param obj Object to call with the member function
493
493
* @param method Member function to execute in the context of the dispatch loop
494
494
* @param context_args Arguments to pass to the callback
495
- * @return Event that will dispatch on the specific queue
495
+ * @return Event that dispatches on the specific queue
496
496
*
497
497
* @code
498
498
* #include "mbed.h"
@@ -520,7 +520,7 @@ class EventQueue : private mbed::NonCopyable<EventQueue> {
520
520
* // Post the event with paramter 8
521
521
* e.post(11);
522
522
*
523
- * // Events are executed by the dispatch method
523
+ * // The dispatch method executes events
524
524
* queue.dispatch();
525
525
* }
526
526
* @endcode
@@ -536,7 +536,7 @@ class EventQueue : private mbed::NonCopyable<EventQueue> {
536
536
*
537
537
* @param cb Callback object
538
538
* @param context_args Arguments to pass to the callback
539
- * @return Event that will dispatch on the specific queue
539
+ * @return Event that dispatches on the specific queue
540
540
*
541
541
* @code
542
542
* #include "mbed.h"
@@ -558,7 +558,7 @@ class EventQueue : private mbed::NonCopyable<EventQueue> {
558
558
* // Post the event with parameter 8
559
559
* e.post(9);
560
560
*
561
- * // events are executed by the dispatch method
561
+ * // The dispatch method executes events
562
562
* q.dispatch();
563
563
* }
564
564
* @endcode
@@ -570,17 +570,17 @@ class EventQueue : private mbed::NonCopyable<EventQueue> {
570
570
571
571
/* * Calls an event on the queue
572
572
*
573
- * The specified callback will be executed in the context of the event
573
+ * The specified callback is executed in the context of the event
574
574
* queue's dispatch loop.
575
575
*
576
- * The call function is irq safe and can act as a mechanism for moving
577
- * events out of irq contexts.
576
+ * The call function is IRQ safe and can act as a mechanism for moving
577
+ * events out of IRQ contexts.
578
578
*
579
579
* @param f Function to execute in the context of the dispatch loop
580
- * @return A unique id that represents the posted event and can
581
- * be passed to cancel, or an id of 0 if there is not
580
+ * @return A unique ID that represents the posted event and can
581
+ * be passed to cancel, or an ID of 0 if there is not
582
582
* enough memory to allocate the event.
583
- * Returned id will remain valid until event has finished
583
+ * Returned ID remains valid until event has finished
584
584
* executing.
585
585
*
586
586
* @code
0 commit comments