Minor formatting tweak to fix file permissions

pull/14087/head
adbridge 2021-01-18 14:59:30 +00:00
parent 4f558743e1
commit 81d7ac683b
2 changed files with 4 additions and 8 deletions

6
events/include/events/Event.h Executable file → Normal file
View File

@ -142,9 +142,9 @@ public:
/** Configure the period of an event
*
* @param p Period (in milliseconds) for repeatedly dispatching an event, expressed as a Chrono duration.
* Period must be either non_periodic or > 0ms. If an invalid period is supplied then a
* default non_periodic value is used.
* @param p Period (in milliseconds) for repeatedly dispatching an event, expressed as a Chrono
* duration. Period must be either non_periodic or > 0ms. If an invalid period is supplied
* then a default non_periodic value is used.
* E.g. period(200ms)
*/
void period(duration p)

6
events/tests/TESTS/events/queue/main.cpp Executable file → Normal file
View File

@ -519,13 +519,12 @@ void handler()
void event_period_tests()
{
// Test a non periodic event ie dispatched only once
Event<void()> event1(&period_tests_queue, handler);
event1.delay(10ms);
event1.period(events::non_periodic);
event1.post();
period_tests_queue.dispatch(80);
// Wait 100ms and check the event execution status
@ -544,7 +543,6 @@ void event_period_tests()
event2.delay(10ms);
event2.period(-10ms);
event2.post();
period_tests_queue.dispatch(80);
// Wait 100ms and check the event execution status
@ -563,7 +561,6 @@ void event_period_tests()
event3.delay(10ms);
event3.period(0ms);
event3.post();
period_tests_queue.dispatch(80);
// Wait 100ms and check the event execution status
@ -581,7 +578,6 @@ void event_period_tests()
event4.delay(10ms);
event4.period(20ms);
event4.post();
period_tests_queue.dispatch(80);
// Wait 100ms and check the event execution status