Thread
:
Help me understand PIDController::OnTarget()
View Single Post
#
13
23-02-2012, 18:58
jwakeman
Registered User
FRC #0063 (Red Barons)
Team Role: Mentor
Join Date: Jan 2011
Rookie Year: 2010
Location: 16510
Posts: 182
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
jwakeman
View Public Profile
Visit jwakeman's homepage!
Find all posts by jwakeman
Find CD-Media Photos by jwakeman
Find CD-Media Papers by jwakeman