BeOS port related changes (initial commit)

This commit is contained in:
zharik
2003-03-29 21:51:19 +00:00
parent ff3bd0a039
commit f760aae131
24 changed files with 844 additions and 244 deletions

View File

@@ -42,6 +42,9 @@
#include <unistd.h>
#endif
#ifdef __BEOS__
#include <OS.h> // sz: snooze() declaration ...
#endif
// ------------------------------------------------------------------
// Global multitasker data
@@ -180,7 +183,11 @@ void GMTsk::timeslice() {
switch(detected) {
#if defined(__UNIX__)
case GMTSK_LINUX:
usleep(5000);
#if defined(__BEOS__)
snooze(5000);
#else
usleep(5000);
#endif
break;
#endif
#if defined(__WIN32__)