From: Philipp Gesang Date: Thu, 4 Apr 2019 15:06:25 +0000 (+0200) Subject: document clockid_t helper X-Git-Tag: v2.11~1^2~4 X-Git-Url: http://developer.intra2net.com/git/?p=libi2ncommon;a=commitdiff_plain;h=76a5f03b53e4bb821d1ca91a8c8aa4387636e850 document clockid_t helper --- diff --git a/src/timefunc.cpp b/src/timefunc.cpp index b486de1..e41308f 100644 --- a/src/timefunc.cpp +++ b/src/timefunc.cpp @@ -1019,6 +1019,18 @@ namespace clock { namespace { + /** + * @brief For internal use only. Translates clock + * specification flags to kernel clock types. + * + * @param id Master clock id: \c mono, \c real, \c boot, or \c + * cpu. + * @param var Variant of clock if appropriate: \c raw, \c exact, \c + * process, or \c thread. Use \c dflt for the base + * variant. + * + * @return The clock id for using with kernel APIs. + */ static inline clockid_t clockid_of_flags (const enum type::id id, const enum type::variant var) NOEXCEPT