projects
/
lttng-tools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add a basic .clang-tidy file and fix typedef warnings
[lttng-tools.git]
/
src
/
bin
/
lttng-sessiond
/
thread.hpp
diff --git
a/src/bin/lttng-sessiond/thread.hpp
b/src/bin/lttng-sessiond/thread.hpp
index 530f72a8e446e3a9c1a2b188ccaaf415129b7625..cc1cbd13d209f1bde11d96bb0cfc28dd48bba9b8 100644
(file)
--- 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. */
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. */
/* 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.
/*
* 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.
*/
* 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.
/*
* Returns a reference to the newly-created thread.
This page took
0.023185 seconds
and
4
git commands to generate.