clang-tidy: add Chrome-inspired checks
[lttng-tools.git] / src / bin / lttng-sessiond / thread.hpp
index 530f72a8e446e3a9c1a2b188ccaaf415129b7625..f35bb5803d864dd5d2503a7efbcdb51f6eb7d069 100644 (file)
 struct lttng_thread;
 
 /* Main function of the new thread. */
-typedef void *(*lttng_thread_entry_point)(void *);
+using lttng_thread_entry_point = void *(*) (void *);
 
 /* Callback invoked to initiate the shutdown a thread. */
-typedef bool (*lttng_thread_shutdown_cb)(void *);
+using lttng_thread_shutdown_cb = bool (*)(void *);
 
 /*
  * Callback invoked to clean-up the thread data.
@@ -24,7 +24,7 @@ typedef bool (*lttng_thread_shutdown_cb)(void *);
  * race between a use by the "thread shutdown callback" and
  * a use by the thread itself.
  */
-typedef void (*lttng_thread_cleanup_cb)(void *);
+using lttng_thread_cleanup_cb = void (*)(void *);
 
 /*
  * Returns a reference to the newly-created thread.
@@ -57,6 +57,6 @@ bool lttng_thread_shutdown(struct lttng_thread *thread);
  *
  * Returns once all orphaned threads have been joined.
  */
-void lttng_thread_list_shutdown_orphans(void);
+void lttng_thread_list_shutdown_orphans();
 
 #endif /* THREAD_H */
This page took 0.023937 seconds and 4 git commands to generate.