diff options
author | Ronan Desplanques <desplanques@adacore.com> | 2024-04-15 14:17:13 +0200 |
---|---|---|
committer | Marc Poulhiès <poulhies@adacore.com> | 2024-06-10 11:03:59 +0200 |
commit | c5aa1535e1328af279b8145fef1ae6fdc91b75fa (patch) | |
tree | 38292c938be7265a85271b24457d070b61ac2075 /gcc/ada/libgnarl/s-putaim.adb | |
parent | aec9d8c9f5d673ff745f7b0560966e98b1404a53 (diff) | |
download | gcc-c5aa1535e1328af279b8145fef1ae6fdc91b75fa.zip gcc-c5aa1535e1328af279b8145fef1ae6fdc91b75fa.tar.gz gcc-c5aa1535e1328af279b8145fef1ae6fdc91b75fa.tar.bz2 |
ada: Fix usage of SetThreadAffinityMask
This patches fixes the signature of the binding to SetThreadAffinityMask
in the run-time library. It also fixes the error checking after calls
to SetThreadAffinityMask. The previous code behaved as if
SetThreadAffinityMask returned 1 on success, but it in fact returns a
pointer value on success and 0 on failure.
gcc/ada/
* libgnarl/s-taprop__mingw.adb (Set_Task_Affinity): Fix usage of
SetThreadAffinityMask.
* libgnat/s-winext.ads (SetThreadAffinityMask): Fix binding
signature.
Diffstat (limited to 'gcc/ada/libgnarl/s-putaim.adb')
0 files changed, 0 insertions, 0 deletions