diff options
author | Thomas Haller <thaller@redhat.com> | 2018-11-25 17:45:11 +0100 |
---|---|---|
committer | Thomas Haller <thaller@redhat.com> | 2018-11-28 16:13:04 +0100 |
commit | 32073288e8bb27edb31b08c9afa851290d2c7948 (patch) | |
tree | 7693ee6653e81866f718b9a3fb8a526d4df74864 /src | |
parent | e180464bcce8faa74704d13580136c741eee0c67 (diff) |
shared: thread safe initialization of nm_utils_get_monotonic_timestamp*()
nm_utils_get_monotonic_timestamp*() inherrently use static data. Let's
initialize it in a thread safe manner.
nm_utils_get_monotonic_timestamp*() are a fundamental utility function
that should work correctly in all cases. Such a low level function should
be thread safe.
Diffstat (limited to 'src')
-rw-r--r-- | src/nm-logging.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/nm-logging.c b/src/nm-logging.c index 328d164ba..f64f03be4 100644 --- a/src/nm-logging.c +++ b/src/nm-logging.c @@ -748,8 +748,8 @@ _nm_log_impl (const char *file, void _nm_utils_monotonic_timestamp_initialized (const struct timespec *tp, - gint64 offset_sec, - gboolean is_boottime) + gint64 offset_sec, + gboolean is_boottime) { if (nm_logging_enabled (LOGL_DEBUG, LOGD_CORE)) { time_t now = time (NULL); |