~ubuntu-branches/ubuntu/karmic/emacs-snapshot/karmic

« back to all changes in this revision

Viewing changes to src/atimer.c

  • Committer: Bazaar Package Importer
  • Author(s): Reinhard Tartler
  • Date: 2009-04-05 09:14:30 UTC
  • mto: This revision was merged to the branch mainline in revision 34.
  • Revision ID: james.westby@ubuntu.com-20090405091430-nw07lynn2arotjbe
Tags: upstream-20090320
ImportĀ upstreamĀ versionĀ 20090320

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/* Asynchronous timers.
2
2
   Copyright (C) 2000, 2001, 2002, 2003, 2004, 2005,
3
 
                 2006, 2007, 2008  Free Software Foundation, Inc.
 
3
                 2006, 2007, 2008, 2009  Free Software Foundation, Inc.
4
4
 
5
5
This file is part of GNU Emacs.
6
6
 
384
384
      EMACS_GET_TIME (now);
385
385
    }
386
386
 
 
387
  if (! atimers)
 
388
    pending_atimers = 0;
 
389
 
 
390
#ifdef SYNC_INPUT
 
391
  if (pending_atimers)
 
392
    pending_signals = 1;
 
393
  else
 
394
    {
 
395
      pending_signals = interrupt_input_pending;
 
396
      set_alarm ();
 
397
    }
 
398
#else
387
399
  if (! pending_atimers)
388
400
    set_alarm ();
 
401
#endif
389
402
}
390
403
 
391
404
 
397
410
     int signo;
398
411
{
399
412
  pending_atimers = 1;
400
 
#ifndef SYNC_INPUT
 
413
#ifdef SYNC_INPUT
 
414
  pending_signals = 1;
 
415
#else
401
416
  run_timers ();
402
417
#endif
403
418
}
439
454
{
440
455
  free_atimers = atimers = NULL;
441
456
  pending_atimers = 0;
 
457
  /* pending_signals is initialized in init_keyboard.*/
442
458
  signal (SIGALRM, alarm_signal_handler);
443
459
}
444
460