Enforce documented RCU preconditions with assertions
[lttng-tools.git] / src / bin / lttng-relayd / stream.cpp
index b57c061c571b41fea32997d5c778eabee233764c..65a8ce11abf95a9c8b45a7077c06f5db94cd535a 100644 (file)
@@ -31,6 +31,8 @@
 /* Should be called with RCU read-side lock held. */
 bool stream_get(struct relay_stream *stream)
 {
+       ASSERT_RCU_READ_LOCKED();
+
        return urcu_ref_get_unless_zero(&stream->ref);
 }
 
This page took 0.022917 seconds and 4 git commands to generate.