To LUGNET HomepageTo LUGNET News HomepageTo LUGNET Guide Homepage
 Help on Searching
 
Post new message to lugnet.robotics.rcx.legosOpen lugnet.robotics.rcx.legos in your NNTP NewsreaderTo LUGNET News Traffic PageSign In (Members)
 Robotics / RCX / legOS / 2544
2543  |  2545
Subject: 
semaphores
Newsgroups: 
lugnet.robotics.rcx.legos
Date: 
Thu, 9 May 2002 18:01:30 GMT
Viewed: 
2340 times
  
Does anyone have any code that implements semaphores and shows where they
might be useful?   That is one place that the documentation seems a little
weak.  Thanks,

Sam



Message has 1 Reply:
  Re: semaphores
 
a short example: #include <semaphore.h> // for semaphore opperations // global buffer, used to store incoming messages. // the buffer is checked by the application waiting for the message. struct inn_msg{ char *msg; sem_t lock; }; //create a (...) (23 years ago, 9-May-02, to lugnet.robotics.rcx.legos)

3 Messages in This Thread:

Entire Thread on One Page:
Nested:  All | Brief | Compact | Dots
Linear:  All | Brief | Compact
    

Custom Search

©2005 LUGNET. All rights reserved. - hosted by steinbruch.info GbR