diff options
author | hjl <hjl@138bc75d-0d04-0410-961f-82ee72b054a4> | 2009-12-09 18:30:59 +0000 |
---|---|---|
committer | hjl <hjl@138bc75d-0d04-0410-961f-82ee72b054a4> | 2009-12-09 18:30:59 +0000 |
commit | 1e23cdf1e0f4a2f1fb70ca2a0ee0d8c7b7674b7b (patch) | |
tree | feb5078a18eb455193dd1046cb3751b5e455de7c /gcc/ada/s-taprop-mingw.adb | |
parent | 6f82734839c35968efea5902f40dc89d1741a63c (diff) | |
download | gcc-1e23cdf1e0f4a2f1fb70ca2a0ee0d8c7b7674b7b.tar.gz |
Merged with trunk at 155111.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/ifunc@155112 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/ada/s-taprop-mingw.adb')
-rw-r--r-- | gcc/ada/s-taprop-mingw.adb | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/gcc/ada/s-taprop-mingw.adb b/gcc/ada/s-taprop-mingw.adb index cb51841a54d..a3b19ab5c5d 100644 --- a/gcc/ada/s-taprop-mingw.adb +++ b/gcc/ada/s-taprop-mingw.adb @@ -312,18 +312,17 @@ package body System.Task_Primitives.Operations is Unlock (L, Global_Lock => True); -- No problem if we are interrupted here: if the condition is signaled, - -- WaitForSingleObject will simply not block + -- WaitForSingleObject will simply not block. if Rel_Time <= 0.0 then Timed_Out := True; Wait_Result := 0; else - if Rel_Time >= Duration (Time_Out_Max) / 1000 then - Time_Out := Time_Out_Max; - else - Time_Out := DWORD (Rel_Time * 1000); - end if; + Time_Out := + (if Rel_Time >= Duration (Time_Out_Max) / 1000 + then Time_Out_Max + else DWORD (Rel_Time * 1000)); Wait_Result := WaitForSingleObject (HANDLE (Cond.all), Time_Out); |