5zosinte.ads (null_pthread): new constant.
authorJoel Brobecker <brobecker@gnat.com>
Fri, 26 Oct 2001 16:09:47 +0000 (18:09 +0200)
committerGeert Bosch <bosch@gcc.gnu.org>
Fri, 26 Oct 2001 16:09:47 +0000 (18:09 +0200)
commit0bf08bfe351ec29e2439180cbb1f587de9333623
treeb294124ef4da82ad9b0a331f660f48f02e52d779
parent7a3a8c068bfe942e28089b7a07a32690edad14ea
5zosinte.ads (null_pthread): new constant.

* 5zosinte.ads (null_pthread): new constant.

* 5ztaprop.adb:
(Initialize_TCB): Initialize thread ID to null, to be able to verify
 later that this field has been set.
(Finalize_TCB): ditto.
(Suspend_Task): Verify that the thread ID is not null before using it.
(Resume_Task): ditto.

* s-tasdeb.adb:
(Resume_All_Tasks): Lock the tasks list before using it.
(Suspend_All_Tasks): ditto.

From-SVN: r46548
gcc/ada/5zosinte.ads
gcc/ada/5ztaprop.adb
gcc/ada/ChangeLog
gcc/ada/s-tasdeb.adb