summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorunknown <jani@a193-229-222-105.elisa-laajakaista.fi>2005-10-28 14:01:00 +0300
committerunknown <jani@a193-229-222-105.elisa-laajakaista.fi>2005-10-28 14:01:00 +0300
commit8db3252fa6fbcf7615815a19ae740bc83b3a605d (patch)
treecd79652dd76f9e541e4708162a7a87cd96879357 /include
parenta1d92b8a1b289bbb6a983ba58034b6df5c1f91b9 (diff)
downloadmariadb-git-8db3252fa6fbcf7615815a19ae740bc83b3a605d.tar.gz
NetWare specific change to use a LibC API instead of a
kernel function to prevent CPU hogs.
Diffstat (limited to 'include')
-rw-r--r--include/config-netware.h5
1 files changed, 1 insertions, 4 deletions
diff --git a/include/config-netware.h b/include/config-netware.h
index 310c9bb7db8..e07e972ba4b 100644
--- a/include/config-netware.h
+++ b/include/config-netware.h
@@ -116,15 +116,12 @@ extern "C" {
/* do not use the extended time in LibC sys\stat.h */
#define _POSIX_SOURCE
-/* Kernel call on NetWare that will only yield if our time slice is up */
-void kYieldIfTimeSliceUp(void);
-
/* Some macros for portability */
#define set_timespec(ABSTIME,SEC) { (ABSTIME).tv_sec=time(NULL)+(SEC); (ABSTIME).tv_nsec=0; }
/* extra protection against CPU Hogs on NetWare */
-#define NETWARE_YIELD kYieldIfTimeSliceUp()
+#define NETWARE_YIELD pthread_yield()
/* Screen mode for help texts */
#define NETWARE_SET_SCREEN_MODE(A) setscreenmode(A)