~ubuntu-branches/ubuntu/feisty/basilisk2/feisty

« back to all changes in this revision

Viewing changes to src/BeOS/timer_beos.cpp

  • Committer: Bazaar Package Importer
  • Author(s): Jonas Smedegaard
  • Date: 2006-06-01 01:11:16 UTC
  • mfrom: (1.1.2 upstream)
  • Revision ID: james.westby@ubuntu.com-20060601011116-xjhegbgyfsxag5fl
Tags: 0.9.20060529-1
* New upstream CVS snapshot.
* Update local cdbs snippet copyright-check.mk:
  + Broaden scan to also look for "(c)" by default.
  + Make egrep options configurable.
  + Ignore auto-tools files.
* Bump up standards-version to 3.7.2 (no changes needed).
* Let dh_strip do the stripping (not the make install target).

Show diffs side-by-side

added added

removed removed

Lines of Context:
28
28
#include "debug.h"
29
29
 
30
30
 
 
31
// From main_beos.cpp
 
32
extern thread_id emul_thread;
 
33
 
 
34
 
31
35
/*
32
36
 *  Return microseconds since boot (64 bit)
33
37
 */
138
142
 
139
143
void idle_wait(void)
140
144
{
141
 
        sleep(16667);
 
145
#if 0
 
146
        /*
 
147
          FIXME: add a semaphore (counter) to avoid a B_BAD_THREAD_STATE
 
148
          return if we call idle_resume() when thread is not suspended?
 
149
 
 
150
          Sorry, I can't test -- gb.
 
151
         */
 
152
        suspend_thread(emul_thread);
 
153
#endif
142
154
}
143
155
 
144
156
 
148
160
 
149
161
void idle_resume(void)
150
162
{
 
163
#if 0
 
164
        resume_thread(emul_thread);
 
165
#endif
151
166
}