X-Git-Url: http://git.lttng.org./?a=blobdiff_plain;f=src%2Fbin%2Flttng-sessiond%2Fthread.hpp;h=a1e390a09b085ee2c56ce1f90d513349b1f30123;hb=f40b76aed659ff694cf948bf8ebd1d4b5741c986;hp=530f72a8e446e3a9c1a2b188ccaaf415129b7625;hpb=c9e313bc594f40a86eed237dce222c0fc99c957f;p=lttng-tools.git diff --git a/src/bin/lttng-sessiond/thread.hpp b/src/bin/lttng-sessiond/thread.hpp index 530f72a8e..a1e390a09 100644 --- a/src/bin/lttng-sessiond/thread.hpp +++ b/src/bin/lttng-sessiond/thread.hpp @@ -13,10 +13,10 @@ 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,17 +24,17 @@ 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. * The shutdown and cleanup callbacks are optional. */ struct lttng_thread *lttng_thread_create(const char *name, - lttng_thread_entry_point entry, - lttng_thread_shutdown_cb shutdown, - lttng_thread_cleanup_cb cleanup, - void *thread_data); + lttng_thread_entry_point entry, + lttng_thread_shutdown_cb shutdown, + lttng_thread_cleanup_cb cleanup, + void *thread_data); bool lttng_thread_get(struct lttng_thread *thread); void lttng_thread_put(struct lttng_thread *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 */