void idActor::Event_GetWaitState()
{
	if( WaitState() )
	{
		idThread::ReturnString( WaitState() );
	}
	else
	{
		idThread::ReturnString( "" );
	}
}
Exemple #2
0
void ASMCALL
ISAC_SetWaitState( REG( d0, BOOL               on ),
                   REG( a6, struct ISAPNPBase* res ) )
{
    bug("[ISAPNP] ISAC_SetWaitState() is not implemented\n");
#if 0
  UBYTE* reg3 = (UBYTE*) ( isa_Base + 0x18007 );

  if( (  on && !WaitState() ) ||
      ( !on &&  WaitState() ) )
  {
    *reg3 = 0;             // Toggle
  }
#endif
}
Exemple #3
0
TError TFreezerSubsystem::Thaw(TCgroup &cg, bool wait) const {
    TError error = cg.Set("freezer.state", "THAWED");
    if (error || !wait)
        return error;
    return WaitState(cg, "THAWED");
}
Exemple #4
0
TError TFreezerSubsystem::Freeze(TCgroup &cg) const {
    TError error = cg.Set("freezer.state", "FROZEN");
    if (error)
        return error;
    return WaitState(cg, "FROZEN");
}