null+****@clear*****
null+****@clear*****
2012年 5月 8日 (火) 14:54:29 JST
Susumu Yata 2012-05-08 14:54:29 +0900 (Tue, 08 May 2012)
New Revision: 74fc93a672e572f9c92a4725b696c9f65a22b8dc
Log:
Fix grn_sleep/nanosleep() to meet the groonga coding style.
Modified files:
lib/ctx.c
Modified: lib/ctx.c (+6 -2)
===================================================================
--- lib/ctx.c 2012-05-08 13:58:03 +0900 (79d33d0)
+++ lib/ctx.c 2012-05-08 14:54:29 +0900 (88401a2)
@@ -56,7 +56,9 @@ uint32_t grn_gtick;
int grn_uyield_count = 0;
#endif
-void grn_sleep(uint32_t seconds) {
+void
+grn_sleep(uint32_t seconds)
+{
#ifdef WIN32
Sleep(seconds * 1000);
#else // WIN32
@@ -64,7 +66,9 @@ void grn_sleep(uint32_t seconds) {
#endif // WIN32
}
-void grn_nanosleep(uint64_t nanoseconds) {
+void
+grn_nanosleep(uint64_t nanoseconds)
+{
#ifdef WIN32
Sleep((DWORD)(nanoseconds / 1000000));
#else // WIN32