summaryrefslogtreecommitdiff
path: root/gcc/ada/5zosinte.ads
diff options
context:
space:
mode:
authorbosch <bosch@138bc75d-0d04-0410-961f-82ee72b054a4>2001-10-26 16:09:47 +0000
committerbosch <bosch@138bc75d-0d04-0410-961f-82ee72b054a4>2001-10-26 16:09:47 +0000
commitf1919bc08041d359d38f4810bcf2437618418699 (patch)
treeb294124ef4da82ad9b0a331f660f48f02e52d779 /gcc/ada/5zosinte.ads
parentff540fb068b6274bd0b1c88cccf01b1cfdd19ef6 (diff)
downloadgcc-f1919bc08041d359d38f4810bcf2437618418699.tar.gz
* 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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@46548 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/ada/5zosinte.ads')
-rw-r--r--gcc/ada/5zosinte.ads6
1 files changed, 5 insertions, 1 deletions
diff --git a/gcc/ada/5zosinte.ads b/gcc/ada/5zosinte.ads
index f0777793005..5eddd7296fa 100644
--- a/gcc/ada/5zosinte.ads
+++ b/gcc/ada/5zosinte.ads
@@ -6,7 +6,7 @@
-- --
-- S p e c --
-- --
--- $Revision: 1.16 $
+-- $Revision$
-- --
-- Copyright (C) 1997-2001 Free Software Foundation, Inc. --
-- --
@@ -218,6 +218,8 @@ package System.OS_Interface is
type pthread_t is private;
subtype Thread_Id is pthread_t;
+ null_pthread : constant pthread_t;
+
type pthread_mutex_t is limited private;
type pthread_cond_t is limited private;
type pthread_attr_t is limited private;
@@ -542,6 +544,8 @@ private
type pthread_t is new long;
+ null_pthread : constant pthread_t := 0;
+
type pthread_key_t is new int;
-- These are to store the pthread_keys that are created with