Add thread safety note

This commit is contained in:
twinaphex 2018-11-28 11:02:36 +01:00
parent af469698da
commit 1c6602e35d

View File

@ -114,6 +114,11 @@ static bool input_autoconfigured[MAX_USERS];
static unsigned input_device_name_index[MAX_INPUT_DEVICES];
static bool input_autoconfigure_swap_override;
/* TODO/FIXME - Not thread safe to access this
* on main thread as well in its current state -
* menu_input.c - menu_event calls this function
* right now, while the underlying variable can
* be modified by a task thread. */
bool input_autoconfigure_get_swap_override(void)
{
return input_autoconfigure_swap_override;