nano-sleep ...
- From: Michael Meeks <michael ximian com>
- To: Havoc Pennington <hp redhat com>
- Cc: <gconf-list gnome org>
- Subject: nano-sleep ...
- Date: Sat, 11 Aug 2001 21:46:05 -0400 (EDT)
Can we remove:
Index: gconf-internals.c
===================================================================
RCS file: /cvs/gnome/gconf/gconf/gconf-internals.c,v
retrieving revision 1.89
diff -u -r1.89 gconf-internals.c
--- gconf-internals.c 2001/08/01 16:18:49 1.89
+++ gconf-internals.c 2001/08/12 01:40:57
@@ -2180,31 +2180,6 @@
}
}
-/* Sleep */
-
-#ifdef HAVE_NANOSLEEP
-
-void
-gconf_nanosleep(gulong useconds)
-{
- struct timespec ts={tv_sec: (long int)(useconds/1000000),
- tv_nsec: (long int)(useconds%1000000)*1000ul};
-
- nanosleep(&ts,NULL);
-}
-
-#elif HAVE_USLEEP
-
-void
-gconf_nanosleep(gulong useconds)
-{
- usleep(useconds);
-}
-
-#else
-#error "need nanosleep or usleep right now (fix with simple select()
hack)"
-#endif
-
/*
* Locks using directories, to work on NFS (at least potentially)
*/
?
Michael.
--
mmeeks gnu org <><, Pseudo Engineer, itinerant idiot
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]