2
0
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:
William E. Kempf
2002-05-15 14:35:39 +00:00
parent 7ba4fc4aed
commit a80d5f159d
6 changed files with 28 additions and 28 deletions

View File

@@ -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;