From: Rob McCool
Newsgroups: netscape.devs-nsapi
Subject: Re: help with semaphores
Date: Mon, 28 Oct 1996 13:31:42 -0800
josh bloom wrote:
>
> I am looking for some examples of how to use semaphores. If you have
> any, or if you can give me advice on the correct syntax, please help.
>
> Do I provide the function with a pathname for a file?? I found the
> sem.h file, but could find no other information.
You provide a filename, not a pathname. If you create a semaphore with
the name "foo" and the id of 100, then the file will most likely be
/tmp/foo.100.
Note that what NSAPI calls semaphores are really just file locks (or
mutexes under NT).
--
Rob McCool, robm@netscape.com http://home.netscape.com/people/robm/
Stunt Programmer, Netscape Communications Corporation
It was working ten minutes ago, I swear...
Reproduced by permission of the author.