home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #3 / NN_1993_3.iso / spool / comp / sys / pen / 812 < prev    next >
Encoding:
Text File  |  1993-01-28  |  1.6 KB  |  48 lines

  1. Newsgroups: comp.sys.pen
  2. Path: sparky!uunet!gumby!wupost!eclnews!usenet
  3. From: dale@manet.wustl.edu (Dale Frye)
  4. Subject: Creating SubTasks in PenPoint
  5. Message-ID: <1993Jan28.161251.5530@wuecl.wustl.edu>
  6. Sender: usenet@wuecl.wustl.edu (News Administrator)
  7. Nntp-Posting-Host: degas
  8. Reply-To: dale@manet.wustl.edu
  9. Organization: Washington University, School of Engineering, St. Louis MO
  10. Date: Thu, 28 Jan 1993 16:12:51 GMT
  11. Lines: 35
  12.  
  13. I want to create a subtask within my process and associate objects with  
  14. it.  I think I understand how to do everything except allow this task to  
  15. accept messages (set up the task message queue).  Do I use OSSubTaskCreate  
  16. (OS.H) and if so what should the function (that pEntrypoint points to)  
  17. look like? Obviously I can write a function that sends messages to other  
  18. objects but what should I do in this function to start  up the message  
  19. receive queue? Do I use AppMain? But AppMain states it creates a document  
  20. so I don't want this but do want something similar.
  21.  
  22.  
  23. ..
  24. OSSubTaskCreate(&New_Task_Function,0,0,0,&newTaskID);
  25. objOwner.task=newTaskID;
  26. objOwner.object=myObj;
  27. ObjCallRet(msgSetOwner, myObj, &objOwner,s);
  28. ..
  29.  
  30.  
  31.  
  32. STATUS EXPORTED0 New_Task_Function( U32 arg)
  33. {
  34. /* Create objects for this task - no problem */
  35.  
  36. /* What do I do now? Don't want to return (as per comments in API) but I  
  37. don't want to terminate the task with OSTaskTerminate as demanded in API.  
  38. I want the task to stay around and not in a loop (not counting the message  
  39. 'loop' of course. */
  40.  
  41. -----------
  42. Also, what other responsibilities do I have in filing and restoring?
  43.  
  44. Dale Frye
  45. Pen Lab
  46. Washington University in St. Louis
  47.  
  48.