*/
#include <lttng/lttng-export.h>
+
+#include <pthread.h>
#include <stdlib.h>
#include <string.h>
-#include <pthread.h>
#include <unistd.h>
#include <urcu.h>
* Check if the specified environment variable is set.
* Return 1 if set, otherwise 0.
*/
-static
-int check_env_var(const char *env)
+static int check_env_var(const char *env)
{
if (env) {
char *env_val = getenv(env);
return 0;
}
-static
-void do_stall(void)
+static void do_stall(void)
{
unsigned int sleep_time = STALL_TIME;
return 0;
}
-LTTNG_EXPORT int __testpoint_sessiond_thread_ht_cleanup(void);
-int __testpoint_sessiond_thread_ht_cleanup(void)
-{
- const char *var = "LTTNG_SESSIOND_THREAD_HT_CLEANUP_STALL";
-
- if (check_env_var(var)) {
- do_stall();
- }
-
- return 0;
-}
-
LTTNG_EXPORT int __testpoint_sessiond_thread_app_manage_notify(void);
int __testpoint_sessiond_thread_app_manage_notify(void)
{