Skip to content

interprocess_condition::timed_wait() requires time as universal_time, not local_time #237

Description

@Tails86

Boost version: 1.86.0
OS: Linux, Ubuntu 22.04

I'm used to using boost::posix_time::microsec_clock::local_time() or std::chrono::steady_clock::now() as my time base for most boost timed wait functionality. However, it seems that interprocess_condition::timed_wait() returns false immediately for me when I have a time 1 second in the future (I am in UTC-7 time zone). Things start to work fine if I either adjust my system time to UTC+0 or update the code to instead use boost::posix_time::microsec_clock::universal_time() as my time base.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions