#include <stdlib.h>
#include <string.h>
#include <pthread.h>
+#include <urcu.h>
/*
* Check if the specified environment variable is set.
const char *var = "LTTNG_THREAD_MANAGE_CLIENTS_EXIT";
if (check_env_var(var)) {
+ rcu_unregister_thread();
pthread_exit(NULL);
}
const char *var = "LTTNG_THREAD_MANAGE_APPS_EXIT";
if (check_env_var(var)) {
+ rcu_unregister_thread();
pthread_exit(NULL);
}