Skip to content

Commit 922ed11

Browse files
committed
fix(node-opal-orchestra): Add comment to global lock
Signed-off-by: Steffen Vogel <[email protected]>
1 parent d977806 commit 922ed11

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

lib/nodes/opal_orchestra/locks.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,10 @@ extern "C" {
1414

1515
#include <villas/nodes/opal_orchestra/locks.hpp>
1616

17+
// Global lock for access to OPAL-RT's RTAPI Orchestra API.
18+
// The Orchestra RTAPI is non-thread-safe and non-reentrant.
19+
// Hence, this mutex is needed for mediating access to the API
20+
// by a single thread at a time.
1721
static std::mutex globalLock;
1822

1923
using namespace villas::node::orchestra;

0 commit comments

Comments
 (0)