Message filter visibility / tasks "borders" - linker error

The OpenAT docs are specifing, that:

If I have two tasks and have two different message filters, how/where to put message filters definition to make it work correctly? Do they have to be defined as globals or local structures in task entry function?

Additionally this is also a question of tasks separation at compile time. I am getting strange compilation errors suggesting that I can’t compile & link my project when two adl_message_t structers are defined in my project. This means that I should let linker know, that these structures belong to different tasks and I don’t know how to do it.

Any help appreciated.

regards
Oskar

Again I am answering my own questions :slight_smile:

this visibility comes with the “execution context”. It’s enough if the filter is declared while in the execution context of the task - no matter where and in which funtion.

regards