summaryrefslogtreecommitdiff
path: root/gcc/ada/s-taprop-mingw.adb
diff options
context:
space:
mode:
authorcharlet <charlet@138bc75d-0d04-0410-961f-82ee72b054a4>2009-11-30 10:28:23 +0000
committercharlet <charlet@138bc75d-0d04-0410-961f-82ee72b054a4>2009-11-30 10:28:23 +0000
commit8d1e3745fc7dcd77f68e7e3841209bb73e284aa6 (patch)
tree31ebe42337e32d1a1265944b1ae6957ba684600f /gcc/ada/s-taprop-mingw.adb
parentc2fb68ac9fbebf56a2aa00b7ec47c950642e9b2d (diff)
downloadgcc-8d1e3745fc7dcd77f68e7e3841209bb73e284aa6.tar.gz
2009-11-30 Sergey Rybin <rybin@adacore.com>
* gnat_ugn.texi: Update gnatcheck doc. 2009-11-30 Robert Dewar <dewar@adacore.com> make.adb, prj-makr.adb, g-sothco.ads: Minor reformattting * s-taprop-dummy.adb: Minor code reorganization (raise with msgs start with lower case). * i-vxwoio.adb, g-dirope.adb, g-sercom-linux.adb, g-enblsp-vms-alpha.adb, g-regist.adb, s-imgcha.adb, s-tarest.adb, s-taprop-mingw.adb, g-exctra.adb, g-expect.adb, g-comlin.adb, g-debpoo.adb, g-expect-vms.adb, g-pehage.adb, g-trasym-vms-alpha.adb, g-enblsp-vms-ia64.adb, s-fatgen.adb, s-fileio.adb: Minor code reorganization (use conditional expressions). git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@154773 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/ada/s-taprop-mingw.adb')
-rw-r--r--gcc/ada/s-taprop-mingw.adb11
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);