Skip to content

Commit

Permalink
docs: Correct minor formatting mistake
Browse files Browse the repository at this point in the history
  • Loading branch information
2b-t committed Nov 6, 2023
1 parent d2a6314 commit d16d9e5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion doc/RealTimeProgramming.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ One can find a few developer checklists for real-time programming such as [this]
```c
#include <sys/mman.h>

::mlockall(MCL_CURRENT | MCL_FUTURE)
::mlockall(MCL_CURRENT | MCL_FUTURE);
```

- Generally real-time processes need to communicate with other non real-time processes. **Do not use standard mutexes (e.g. `std::mutex`) when communicating between threads with different priorities** as this is known to potentially result in [priority inversion](https://en.wikipedia.org/wiki/Priority_inversion): A low-priority task might only run after another task with same or slightly higher priority and therefore block the high-priority task that relies on the low-priority task to complete
Expand Down

0 comments on commit d16d9e5

Please sign in to comment.