Modify

Opened 4 years ago

Closed 4 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 !

Attachments (0)

Change History (2)

comment:1 Changed 4 years ago by Ion Gaztañaga

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

comment:2 Changed 4 years ago by Ion Gaztañaga

Resolution: fixed
Status: newclosed

(In [86475]) Fixes #9288

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain Ion Gaztañaga.
The resolution will be deleted.

Add Comment


E-mail address and name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.