Remove unused dds_sleepuntil

Signed-off-by: Erik Boasson <eb@ilities.com>
This commit is contained in:
Erik Boasson 2020-03-09 14:01:35 +01:00 committed by eboasson
parent 269f18e98a
commit 39c7997c67
2 changed files with 0 additions and 18 deletions

View file

@ -86,16 +86,6 @@ DDS_EXPORT dds_time_t dds_time(void);
*/ */
DDS_EXPORT void dds_sleepfor (dds_duration_t reltime); DDS_EXPORT void dds_sleepfor (dds_duration_t reltime);
/**
* @brief Suspend execution of calling thread until absolute time n elapsed.
*
* Execution is suspended until the given absolute time elapsed. Should the
* call be interrupted, it is re-entered with the remaining time.
*
* @param[in] abstime Absolute time in nanoseconds since UNIX Epoch.
*/
DDS_EXPORT void dds_sleepuntil (dds_time_t abstime);
/** /**
* @brief Get high resolution, monotonic time. * @brief Get high resolution, monotonic time.
* *

View file

@ -35,14 +35,6 @@ void dds_sleepfor(dds_duration_t n)
} }
#endif #endif
void dds_sleepuntil(dds_time_t abstime)
{
dds_time_t now = dds_time();
if (abstime > now)
dds_sleepfor (abstime - now);
}
size_t size_t
ddsrt_ctime(dds_time_t n, char *str, size_t size) ddsrt_ctime(dds_time_t n, char *str, size_t size)
{ {