Remove unused dds_sleepuntil
Signed-off-by: Erik Boasson <eb@ilities.com>
This commit is contained in:
parent
269f18e98a
commit
39c7997c67
2 changed files with 0 additions and 18 deletions
|
@ -86,16 +86,6 @@ DDS_EXPORT dds_time_t dds_time(void);
|
|||
*/
|
||||
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.
|
||||
*
|
||||
|
|
|
@ -35,14 +35,6 @@ void dds_sleepfor(dds_duration_t n)
|
|||
}
|
||||
#endif
|
||||
|
||||
void dds_sleepuntil(dds_time_t abstime)
|
||||
{
|
||||
dds_time_t now = dds_time();
|
||||
|
||||
if (abstime > now)
|
||||
dds_sleepfor (abstime - now);
|
||||
}
|
||||
|
||||
size_t
|
||||
ddsrt_ctime(dds_time_t n, char *str, size_t size)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue