comp.lang.ada
 help / color / mirror / Atom feed
From: "Lennart Bergstr�m" <lennart.bergstrom@mailbox.swipnet.se>
Subject: TASK_ATTRIBUTES pragma in GNAT vs APEX and SOLARIS LWP
Date: 1999/02/21
Date: 1999-02-21T00:00:00+00:00	[thread overview]
Message-ID: <3i%z2.2448$94.4901@nntpserver.swip.net> (raw)

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 743 bytes --]

Hi !

I am using Solaris 2.5.1 with APEX 2.4.1 and are trying to port an
application
to GNAT 3.11p.

Has anyone had a problem in GNAT 3.11p how to bind a thread to a lightweight
process
(LWP)?

In APEX we use ada_krn_defs and os_thread.

TASK_ATTR_BOUND_HIPRI : ADA_KRN_DEFS.TASK_ATTR_T :=
    (
    Prio => Priority'First +1,
    Flags => OS_Thread.THR_BOUND,
    Mutex_attr_address => No_Addr,
    Cond_attr_address => No_Addr);

where OS_thread.THR_BOUND : constant := 16#01#;

Within every task type we use
pragma task_attributes (TASK_ATTR_BOUND_HIPRI'Address);


Is it possible to do this in GNAT 3.11p ?

Could one use task_info ?

ANY SUGGESTION IS WELCOME !!


Regards,


Lennart Bergstr�m
lennart.bergstrom@mailbox.swipnet.se






                 reply	other threads:[~1999-02-21  0:00 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox