From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: * X-Spam-Status: No, score=1.0 required=5.0 tests=BAYES_20,FORGED_GMAIL_RCVD, FREEMAIL_FROM autolearn=no autolearn_force=no version=3.4.4 X-Google-Thread: 103376,a555752235c318a9,start X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!postnews.google.com!f14g2000cwb.googlegroups.com!not-for-mail From: "mferracini" Newsgroups: comp.lang.ada Subject: i'm going crazy with task Date: 30 Nov 2004 07:56:11 -0800 Organization: http://groups.google.com Message-ID: <1101830171.387036.135810@f14g2000cwb.googlegroups.com> NNTP-Posting-Host: 213.215.153.30 Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" X-Trace: posting.google.com 1101830175 20263 127.0.0.1 (30 Nov 2004 15:56:15 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Tue, 30 Nov 2004 15:56:15 +0000 (UTC) User-Agent: G2/0.2 Complaints-To: groups-abuse@google.com Injection-Info: f14g2000cwb.googlegroups.com; posting-host=213.215.153.30; posting-account=OjhBzA0AAAC7IWpsLrvIpzjmXdzmh93y Xref: g2news1.google.com comp.lang.ada:6669 Date: 2004-11-30T07:56:11-08:00 List-Id: 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