home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #26 / NN_1992_26.iso / spool / comp / unix / aix / 11370 < prev    next >
Encoding:
Text File  |  1992-11-08  |  1.1 KB  |  23 lines

  1. Newsgroups: comp.unix.aix
  2. Path: sparky!uunet!europa.asd.contel.com!emory!swrinde!zaphod.mps.ohio-state.edu!malgudi.oar.net!news.ans.net!newsgate.watson.ibm.com!yktnews!admin!minnie!gerth
  3. From: gerth@watson.ibm.com (John Gerth)
  4. Subject: Re: swap instruction in assembler?
  5. Sender: news@watson.ibm.com (NNTP News Poster)
  6. Message-ID: <1992Nov07.030846.47547@watson.ibm.com>
  7. Date: Sat, 07 Nov 1992 03:08:46 GMT
  8. Disclaimer: This posting represents the poster's views, not necessarily those of IBM
  9. References: <471@bertha.HyperDesk.com> <1992Nov06.014521.65797@watson.ibm.com> <30136@nntp_server.ems.cdc.com>
  10. Nntp-Posting-Host: minnie.watson.ibm.com
  11. Organization: IBM T.J. Watson Research Center
  12. Lines: 9
  13.  
  14. The cs() routine "Compare and Swap" is not a traditional or POSIX
  15. routine and so isn't portable.  I didn't feel too bad about recommending
  16. it because the question in the subject mentioned "assembler" and so
  17. seemed to indicate portability was not a question.  There's nothing
  18. particularly hard about cs() and it could be built out of semaphores 
  19. in a straightforward manner, but you're correct that it's an AIXism.
  20.  
  21. -- 
  22. John Gerth     gerth@watson.ibm.com        (914) 784-7639
  23.