コード例 #1
0
ファイル: rndstack.cpp プロジェクト: Amadiro/xara-cairo
void RenderStack::CleanUpBeforeDestruct(RenderRegion *pRegion)
{
	ERROR3IF(pRegion == NULL, "Illegal NULL param");

	// Just repeatedly restore until we've popped everything.
	// That way if someone changes Restore, they won't break this function!
	while (ContextLevel > 0)
		RestoreContext(pRegion);
}
コード例 #2
0
ファイル: rt_Task.c プロジェクト: Babody/mbed
void rt_sys_start (void) {
  /* Start system */

  /* Intitialize and start system clock timer */
  os_tick_irqn = os_tick_init ();
  if (os_tick_irqn >= 0) {
    OS_X_INIT(os_tick_irqn);
  }
  extern void RestoreContext();
  RestoreContext(); // Start the first task
}