View Single Post
  #13   Spotlight this post!  
Unread 23-02-2012, 18:58
jwakeman jwakeman is offline
Registered User
FRC #0063 (Red Barons)
Team Role: Mentor
 
Join Date: Jan 2011
Rookie Year: 2010
Location: 16510
Posts: 182
jwakeman is just really nicejwakeman is just really nicejwakeman is just really nicejwakeman is just really nicejwakeman is just really nice
Re: Help me understand PIDController::OnTarget()

Can someone explain the difference between these two uses of the semaphore? I see both being used in the PIDController class.

Code:
CRITICAL_REGION(m_semaphore)
{
}
END_REGION;
Code:
{
    Synchronized sync(m_semaphore);
}

Last edited by jwakeman : 23-02-2012 at 18:59. Reason: code tags
Reply With Quote