Skip to content
This repository was archived by the owner on May 3, 2026. It is now read-only.

Commit 2e16c0b

Browse files
committed
further document lock_ports helper function
1 parent b23dce0 commit 2e16c0b

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

src/system/system_daemon.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ void ser_output_flush();
3434
*/
3535
template<std::size_t... Is>
3636
static void lock_ports(std::index_sequence<Is...>) {
37+
// std::lock locks multiple mutexes without risk of a deadlock
3738
std::lock(zest::Brain::ports[Is].mutex...);
3839
}
3940

0 commit comments

Comments
 (0)