diff options
author | Thomas Haller <thaller@redhat.com> | 2018-11-25 17:45:11 +0100 |
---|---|---|
committer | Thomas Haller <thaller@redhat.com> | 2018-11-26 10:18:52 +0100 |
commit | a6a7939e2c251e05d4ffee25f514e696303b1522 (patch) | |
tree | 9ec333f625bc0d93bfa45f173d73331e79d81b65 /src | |
parent | cdcce5e9485bb6c8b6cc4f8e43111f075799641c (diff) | |
download | NetworkManager-th/monotonic-timestamp-cleanup.tar.gz |
shared: thread safe initialization of nm_utils_get_monotonic_timestamp*()th/monotonic-timestamp-cleanup
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 328d164ba2..f64f03be48 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); |