home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.sys.pen
- Path: sparky!uunet!gumby!wupost!eclnews!usenet
- From: dale@manet.wustl.edu (Dale Frye)
- Subject: Creating SubTasks in PenPoint
- Message-ID: <1993Jan28.161251.5530@wuecl.wustl.edu>
- Sender: usenet@wuecl.wustl.edu (News Administrator)
- Nntp-Posting-Host: degas
- Reply-To: dale@manet.wustl.edu
- Organization: Washington University, School of Engineering, St. Louis MO
- Date: Thu, 28 Jan 1993 16:12:51 GMT
- Lines: 35
-
- I want to create a subtask within my process and associate objects with
- it. I think I understand how to do everything except allow this task to
- accept messages (set up the task message queue). Do I use OSSubTaskCreate
- (OS.H) and if so what should the function (that pEntrypoint points to)
- look like? Obviously I can write a function that sends messages to other
- objects but what should I do in this function to start up the message
- receive queue? Do I use AppMain? But AppMain states it creates a document
- so I don't want this but do want something similar.
-
-
- ..
- OSSubTaskCreate(&New_Task_Function,0,0,0,&newTaskID);
- objOwner.task=newTaskID;
- objOwner.object=myObj;
- ObjCallRet(msgSetOwner, myObj, &objOwner,s);
- ..
-
-
-
- STATUS EXPORTED0 New_Task_Function( U32 arg)
- {
- /* Create objects for this task - no problem */
-
- /* What do I do now? Don't want to return (as per comments in API) but I
- don't want to terminate the task with OSTaskTerminate as demanded in API.
- I want the task to stay around and not in a loop (not counting the message
- 'loop' of course. */
-
- -----------
- Also, what other responsibilities do I have in filing and restoring?
-
- Dale Frye
- Pen Lab
- Washington University in St. Louis
-
-