mirror of
https://github.com/boostorg/thread.git
synced 2026-01-28 07:42:12 +00:00
Merged from RC_1_28_0 branch
[SVN r13905]
This commit is contained in:
@@ -145,7 +145,7 @@ bool timed_mutex::do_trylock()
|
||||
|
||||
bool timed_mutex::do_timedlock(const xtime& xt)
|
||||
{
|
||||
unsigned milliseconds;
|
||||
int milliseconds;
|
||||
to_duration(xt, milliseconds);
|
||||
|
||||
unsigned int res = WaitForSingleObject(reinterpret_cast<HANDLE>(m_mutex), milliseconds);
|
||||
@@ -500,7 +500,7 @@ bool timed_mutex::do_trylock()
|
||||
|
||||
bool timed_mutex::do_timedlock(const xtime& xt)
|
||||
{
|
||||
unsigned microseconds;
|
||||
int microseconds;
|
||||
to_microduration(xt, microseconds);
|
||||
Duration lDuration = kDurationMicrosecond * microseconds;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user