Opened 9 years ago
Closed 9 years ago
#9288 closed Bugs (fixed)
timed_wait does not check if has expired
Reported by: | Owned by: | Ion Gaztañaga | |
---|---|---|---|
Milestone: | To Be Determined | Component: | interprocess |
Version: | Boost 1.54.0 | Severity: | Problem |
Keywords: | Cc: |
Description
winapi_semaphore_wrapper.hpp line 83
unsigned long ret = winapi::wait_for_single_object(m_sem_hnd, (abs_time - microsec_clock::universal_time()).total_milliseconds());
the abs_time - microsec_clock::universal_time() maybe <0 !
Note:
See TracTickets
for help on using tickets.
Thanks for the report, a check will be added to see if abs_time is less than current time.