Semaphore help
- Posted by jbrown105 at speedymail.org Jun 04, 2002
- 409 views
I have tried to implement the code for semaphores, but it seems not to be working. The main limitation is that fact that one of the paramters of a function (semctl) has a union as its type. How does one create/pass a union as a paramter to a C func? (It would be nice to also have examples of using semaphores, but I have the lpg (linux programmers guide) in addition to the man pages, so if none can be provided, I can manage.) (Also, I'll eventually try to write a parser, so you can replace clunky routine calls with code that looks like this: "shared integer count count = 1" instead of this: "newvar("count") setvar("count", 1)", any ideas/code on how this could be done?) TIA, jbrown -- http://fastmail.fm: send your email first class