Skip to content

wrapper functions for POSIX message queue functions mq_timedreceive and mq_timedsend that accept as parameter clock MONOTONIC instead of clock REAL TIME.

Notifications You must be signed in to change notification settings

tomoss/mq-timed-with-monotonic-clock

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

POSIX Message Queue functions that accept timeout of type CLOCK_MONOTONIC

C++11

CI: GCC + Clang

platform Linux x86_64 platform Linux ARM

The POSIX message queue functions:

mq_timedreceive
mq_timedsend

are limitied to using CLOCK_REALTIME as timeout parameter.

Here is an implementation of two wrapper functions for them, named:

mq_timedreceive_monotonic
mq_timedsend_monotonic

that accept as timeout parameter CLOCK_MONOTONIC.

Implementation was done using Linux API function poll()

About

wrapper functions for POSIX message queue functions mq_timedreceive and mq_timedsend that accept as parameter clock MONOTONIC instead of clock REAL TIME.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published