PDA

View Full Version : How does Synchronized initialize semaphores?


360skier
01-26-2009, 05:07 PM
I am writing our robot code such that the camera processing is done in a separate task from the rest of the robot. However, I need to share some code between the two tasks. So I looked at the Synchronized class. It all appears to make sense, except that there is no call to a semaphore creation method. The VxWorks documentation makes it quite clear that one of these functions is vital to proper semaphore operation. So, do I need to make that call myself, or is it done elsewhere (not in Synchronized)?