for_developers:thread_safety
This is an old revision of the document!
Thread Safety
In EEROS, blocks are basically accessed by multiple threads. EEROS blocks feature thread safety by providing exclusive access to critical memory locations by a mutex.
Concurrency can not be tested by Google Test framework. Therefore, test executables are needed which can be executed manually or via bash scripts.
To provide an example, a test program testing the Gain block is described in the following. The full source code is available at GitHub at:
for_developers/thread_safety.1568108827.txt.gz · Last modified: 2019/09/10 11:47 by kunz