10#ifndef LOGIC_USER_COMMAND_QUEUE_H
11#define LOGIC_USER_COMMAND_QUEUE_H
20namespace user_command_queue {
Define a command destined to the user layer. Command can only be created by the static make_* methods...
Definition: user_commands.h:21
void loop()
Main loop only: run the posted commands, in order, then the requested brightness callback.
Definition: user_command_queue.cpp:38
static constexpr size_t maxStoredCommands
Maximum number of commands waiting for the main loop.
Definition: user_command_queue.h:23
bool post(const common::UserCommand &command)
Post a user command, run by the main loop on its next tick. Thread safe.
Definition: user_command_queue.cpp:25
void request_brightness_user_callback()
Request a call to the user brightness callback (see brightness::force_brightness_user_callback()),...
Definition: user_command_queue.cpp:34
size_t get_pending_count()
Return the number of commands waiting for the main loop. Thread safe.
Definition: user_command_queue.cpp:36
Program scope.
Definition: control_fixed_modes.hpp:14