int ret, output;
uint32_t chan_id;
uint64_t key, chan_reg_key;
- char *pathname = NULL;
+ char *pathname = nullptr;
struct lttcomm_consumer_msg msg;
char shm_path[PATH_MAX] = "";
char root_shm_path[PATH_MAX] = "";
}
/* Next, get all streams. */
- while (1) {
+ while (true) {
struct ust_app_stream *stream;
/* Create UST stream */
stream = ust_app_alloc_stream();
- if (stream == NULL) {
+ if (stream == nullptr) {
ret = -ENOMEM;
goto error;
}
LTTNG_ASSERT(socket);
- rcu_read_lock();
+ lttng::urcu::read_lock_guard read_lock;
health_code_update();
/* Wait for a metadata request */
ret = 0;
end:
- rcu_read_unlock();
return ret;
}