예제 #1
0
void
XCSoarInterface::ReceiveBlackboard()
{
  ScopeLock protect(mutexBlackboard);
  ReadBlackboardBasic(device_blackboard.Basic());
  ReadBlackboardCalculated(device_blackboard.Calculated());
}
예제 #2
0
파일: Interface.cpp 프로젝트: scottp/xcsoar
void XCSoarInterface::ReceiveBlackboard() {
  ScopeLock protect(mutexBlackboard);
  ReadBlackboardBasic(device_blackboard.Basic());
  ReadBlackboardCalculated(device_blackboard.Calculated());

  if (Calculated().TeammateCodeValid) {
    SetSettingsComputer().TeammateCodeValid= true;
  }
}
예제 #3
0
void
XCSoarInterface::ReceiveCalculated()
{
  {
    ScopeLock protect(device_blackboard->mutex);

    ReadBlackboardCalculated(device_blackboard->Calculated());
    device_blackboard->ReadComputerSettings(GetComputerSettings());
  }

  BroadcastCalculatedUpdate();
}