comp.lang.ada
 help / color / mirror / Atom feed
* TASK_ATTRIBUTES pragma in GNAT vs APEX and SOLARIS LWP
@ 1999-02-21  0:00 Lennart Bergstr�m
  0 siblings, 0 replies; only message in thread
From: Lennart Bergstr�m @ 1999-02-21  0:00 UTC (permalink / 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






^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~1999-02-21  0:00 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1999-02-21  0:00 TASK_ATTRIBUTES pragma in GNAT vs APEX and SOLARIS LWP Lennart Bergstr�m

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