home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #1 / NN_1993_1.iso / spool / comp / sys / amiga / programm / 18413 < prev    next >
Encoding:
Internet Message Format  |  1993-01-09  |  1.7 KB

  1. Path: sparky!uunet!mcsun!news.funet.fi!funic!sauna.cs.hut.fi!news.cs.hut.fi!s37732v
  2. From: s37732v@snakemail.hut.fi (Markus Juhani Aalto)
  3. Newsgroups: comp.sys.amiga.programmer
  4. Subject: Re: Enough talk.  FILE: server.c
  5. Date: 09 Jan 93 10:00:54 GMT
  6. Organization: Helsinki University of Technology, Finland
  7. Lines: 29
  8. Distribution: inet
  9. Message-ID: <S37732V.93Jan9120054@lk-hp-7.hut.fi>
  10. References: <C0IyF5.9Gv@usenet.ucs.indiana.edu> <38418@cbmvax.commodore.com>
  11.     <C0JsA8.MIt@usenet.ucs.indiana.edu>
  12. NNTP-Posting-Host: lk-hp-7.hut.fi
  13. In-reply-to: shulick@navajo.ucs.indiana.edu's message of Fri, 8 Jan 1993 18:20:31 GMT
  14.  
  15. In article <C0JsA8.MIt@usenet.ucs.indiana.edu> shulick@navajo.ucs.indiana.edu (Sam Hulick) writes:
  16.  
  17.    So Forbid() should be used before creating new message ports, and
  18.    finding them?  How's this revised version?
  19.  
  20.    ....code....
  21.       Forbid();
  22.       myport = FindPort("Foobar!");
  23.       if (myport)
  24.       {
  25.      if (EasyRequest(NULL, &ereq[SERVER_RUNNING], NULL))
  26.        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  27.  
  28. Don't call EasyRequest if you have Forbidden task switching. I don't
  29. know if its illegal but it certainly isn't very nice.
  30.  
  31. >       // Amiga 3000   ___ \ Sam Hulick: shulick@indiana.edu (NeXTmail OK!)
  32.  
  33. --
  34.  
  35.  
  36. **************************************************************************
  37. *         Markus Aalto              | Helsinki University of Technology  *
  38. *                                   |                                    *
  39. *  EMail: s37732v@vipunen.hut.fi    | Faculty of Electric Engineering    *
  40. *  Fax:   358-0-8746991 (Sometimes) |                                    *
  41. *                                   | Undergraduate in Computer Science  *
  42. **************************************************************************
  43.         
  44.