1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2025-01-17 06:12:43 +01:00

sys/event: add event thread flag to THREAD_FLAG_PREDEFINED_MASK

This commit is contained in:
Joshua DeWeese 2024-09-19 21:30:57 -04:00
parent 76c90594c6
commit d958512537
2 changed files with 13 additions and 8 deletions

View File

@ -103,6 +103,13 @@ extern "C" {
*/
#define THREAD_FLAG_TIMEOUT (1u << 14)
/**
* @brief Thread flag use to notify available events in an event queue
*
* This flag is used by the `event` module.
*/
#define THREAD_FLAG_EVENT (1u << 13)
/**
* @brief Comprehensive set of all predefined flags
*
@ -114,7 +121,12 @@ extern "C" {
* When using custom flags, asserting that they are not in this set can help
* avoid conflict with future additions to the predefined flags.
*/
#define THREAD_FLAG_PREDEFINED_MASK (THREAD_FLAG_MSG_WAITING | THREAD_FLAG_TIMEOUT)
#define THREAD_FLAG_PREDEFINED_MASK (\
THREAD_FLAG_EVENT |\
THREAD_FLAG_MSG_WAITING |\
THREAD_FLAG_TIMEOUT\
)
/** @} */
/**

View File

@ -115,13 +115,6 @@
extern "C" {
#endif
#ifndef THREAD_FLAG_EVENT
/**
* @brief Thread flag use to notify available events in an event queue
*/
#define THREAD_FLAG_EVENT (0x1)
#endif
/**
* @brief event_queue_t static initializer
*/