Thread Flags Functions Test Cases.
More...
The test cases check the Thread Flags functions.
◆ TC_ThreadFlagsCheckTimeout()
void TC_ThreadFlagsCheckTimeout |
( |
void |
| ) |
|
- Set time thresholds
- Create wakeup thread to set a thread flag after 10 ticks
- Wait for a thread flag with a defined timeout
- Check if the thread flag is raised between the minimum and maximum thresholds
- Wait for a thread flag with an infinite timeout
- Check if the thread flag is raised between the minimum and maximum thresholds
◆ TC_ThreadFlagsChildThread()
void TC_ThreadFlagsChildThread |
( |
void |
| ) |
|
- Create a child thread Within child thread:
- Verify that all flags are cleared
- Set all thread flags
- Verify that all thread flags are set
- Clear all thread flags
- Verify that all thread flags are cleared
◆ TC_ThreadFlagsChildToChild()
void TC_ThreadFlagsChildToChild |
( |
void |
| ) |
|
- Create two child threads Within child thread:
- Verify that all flags are cleared
- Set all thread flags
- Verify that all thread flags are set
- Clear all thread flags
- Verify that all thread flags are cleared
◆ TC_ThreadFlagsChildToParent()
void TC_ThreadFlagsChildToParent |
( |
void |
| ) |
|
- Create signaling thread
- Send signal to the signaling thread
◆ TC_ThreadFlagsInterrupts()
void TC_ThreadFlagsInterrupts |
( |
void |
| ) |
|
- Call all flag management functions from the ISR
◆ TC_ThreadFlagsMainThread()
void TC_ThreadFlagsMainThread |
( |
void |
| ) |
|
- Set all thread flags for the main thread
- Clear all thread flags for the main thread
◆ TC_ThreadFlagsParam()
void TC_ThreadFlagsParam |
( |
void |
| ) |
|
- Test flag management functions with invalid parameters
◆ TC_ThreadFlagsWaitTimeout()
void TC_ThreadFlagsWaitTimeout |
( |
void |
| ) |
|
- Clear all flags for current thread
- Wait for any single flag without timeout
- Wait for any single flag with timeout
- Wait for all flags without timeout
- Wait for all flags with timeout
- Wait for various flag masks from a signaling thread