comp.lang.ada
 help / color / mirror / Atom feed
From: "mferracini" <maurizio.ferracini@gmail.com>
Subject: i'm going crazy with task
Date: 30 Nov 2004 07:56:11 -0800
Date: 2004-11-30T07:56:11-08:00	[thread overview]
Message-ID: <1101830171.387036.135810@f14g2000cwb.googlegroups.com> (raw)

i'm working on a user defined task scheduler.

my problem is:
if a task type is defined in a package how i can export a pointer to
this task?
the main problem is that the task have a "generic" part so an user can
write different body for thid task.

it look like this

task type dummy is
entry dosomething;
....
task body dummy is
...
loop
accept dosomething
user_defined_work;  <--generic part.
end loop;
....

the problem is that the task type is visible only inside the pakage.
my idea is to crate a scheduler task with an array of pointer of dummy
task
but

if i put the scheduler in the package, evry time that i make a new
dummy task a new scheduler start.

if i put the scheduler outside the pakage i can't define the the arry
of task.

using some trick (like win32 package) is possible have a pointer to the
entry of a task?

thanks




             reply	other threads:[~2004-11-30 15:56 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-11-30 15:56 mferracini [this message]
2004-11-30 16:11 ` i'm going crazy with task mferracini
2004-11-30 16:33   ` Alex R. Mosteo
     [not found] ` <lglqq0lvgvdbr0gbjhqhit27omga2cm7r5@4ax.com>
2004-12-01 10:16   ` Adrien Plisson
     [not found]     ` <5eorq0lbcd90apmjoe46ob4pj96pchtcno@4ax.com>
2004-12-01 16:41       ` Adrien Plisson
2004-12-02  9:44         ` mferracini
     [not found]           ` <gmduq0hd1l97714g219custsomfo9b8an6@4ax.com>
2004-12-02 17:38             ` Adrien Plisson
replies disabled

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