Opened 9 years ago

Closed 9 years ago

#9288 closed Bugs (fixed)

timed_wait does not check if has expired

Reported by: huyuguang@… 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 !

Change History (2)

comment:1 by Ion Gaztañaga, 9 years ago

Thanks for the report, a check will be added to see if abs_time is less than current time.

comment:2 by Ion Gaztañaga, 9 years ago

Resolution: fixed
Status: newclosed

(In [86475]) Fixes #9288

Note: See TracTickets for help on using tickets.