• R/O
  • SSH
  • HTTPS

vxv-tools: Commit


Commit MetaInfo

Revision38 (tree)
Time2009-09-07 06:47:07
Authorsatofumi

Log Message

nanosleep とは別に usleep を使うように変更

Change Summary

Incremental Difference

--- runCtrl/vxv_c/run_utils.c (revision 37)
+++ runCtrl/vxv_c/run_utils.c (revision 38)
@@ -79,11 +79,18 @@
7979 \retval なし
8080 */
8181 void mWait(int msec) {
82-#if defined(Linux) || defined(NetBSD)
82+#if defined(Linux)
8383 int sec = msec / 1000;
8484 int left_msec = msec - (sec * 1000);
8585 sleep(sec);
86+ usleep(1000 * left_msec);
87+
88+#elif defined(NetBSD)
89+ int sec = msec / 1000;
90+ int left_msec = msec - (sec * 1000);
91+ sleep(sec);
8692 nanosleep(1000000 * left_msec);
93+
8794 #elif defined(__WIN32__) || defined(_MBCS)
8895 Sleep(msec);
8996 #endif
--- Makefile (revision 37)
+++ Makefile (revision 38)
@@ -18,7 +18,6 @@
1818 cd geometry/chap2/sample/ && ${MAKE}
1919 -cd writer/ && ${MAKE}
2020 cd edf2env/ && ${MAKE}
21- -cd nettyping/ && ${MAKE}
2221
2322 lib :
2423 cd utils/cpp/ && ${MAKE} utils.a
@@ -85,7 +84,6 @@
8584 -cd writer/ && ${MAKE} clean
8685 cd edf2env/ && ${MAKE} clean
8786 -cd vcprogen/ && ${MAKE} clean
88- -cd nettyping/ && ${MAKE} clean
8987 cd package/ && ${MAKE} clean
9088
9189 mairoku :
Show on old repository browser