comp.lang.ada
 help / color / mirror / Atom feed
* i'm going crazy with task
@ 2004-11-30 15:56 mferracini
  2004-11-30 16:11 ` mferracini
       [not found] ` <lglqq0lvgvdbr0gbjhqhit27omga2cm7r5@4ax.com>
  0 siblings, 2 replies; 7+ messages in thread
From: mferracini @ 2004-11-30 15:56 UTC (permalink / 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




^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2004-12-02 17:38 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-11-30 15:56 i'm going crazy with task mferracini
2004-11-30 16:11 ` 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

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