فهرست منبع

core: fork_*_utimer()'s interval is in microseconds

Sync comments with code and function names

(cherry picked from commit e2596876b830783de88934d45c9c5563ba2c3577)
Alex Hermann 11 سال پیش
والد
کامیت
3ed4a1b4d2
1فایلهای تغییر یافته به همراه10 افزوده شده و 10 حذف شده
  1. 10 10
      timer_proc.c

+ 10 - 10
timer_proc.c

@@ -96,19 +96,19 @@ int fork_basic_timer(int child_id, char* desc, int make_sock,
 }
 
 /**
- * \brief Forks a separate simple milisecond-sleep() periodic timer
+ * \brief Forks a separate simple microsecond-sleep() periodic timer
  * 
- * Forks a very basic periodic timer process, that just ms-sleep()s for 
+ * Forks a very basic periodic timer process, that just us-sleep()s for 
  * the specified interval and then calls the timer function.
- * The new "basic timer" process execution start immediately, the ms-sleep()
+ * The new "basic timer" process execution start immediately, the us-sleep()
  * is called first (so the first call to the timer function will happen
- * \<interval\> seconds after the call to fork_basic_utimer)
+ * \<interval\> microseconds after the call to fork_basic_utimer)
  * @param child_id  @see fork_process()
  * @param desc      @see fork_process()
  * @param make_sock @see fork_process()
  * @param f         timer function/callback
  * @param param     parameter passed to the timer function
- * @param uinterval  interval in mili-seconds.
+ * @param uinterval  interval in micro-seconds.
  * @return pid of the new process on success, -1 on error
  * (doesn't return anything in the child process)
  */
@@ -244,19 +244,19 @@ int fork_sync_timer(int child_id, char* desc, int make_sock,
 
 
 /**
- * \brief Forks a separate simple milisecond-sleep() -&- sync periodic timer
+ * \brief Forks a separate simple microsecond-sleep() -&- sync periodic timer
  *
- * Forks a very basic periodic timer process, that just ms-sleep()s for 
+ * Forks a very basic periodic timer process, that just us-sleep()s for 
  * the specified interval and then calls the timer function.
- * The new "sync timer" process execution start immediately, the ms-sleep()
+ * The new "sync timer" process execution start immediately, the us-sleep()
  * is called first (so the first call to the timer function will happen
- * \<interval\> seconds after the call to fork_basic_utimer)
+ * \<interval\> microseconds after the call to fork_basic_utimer)
  * @param child_id  @see fork_process()
  * @param desc      @see fork_process()
  * @param make_sock @see fork_process()
  * @param f         timer function/callback
  * @param param     parameter passed to the timer function
- * @param uinterval  interval in mili-seconds.
+ * @param uinterval  interval in micro-seconds.
  * @return pid of the new process on success, -1 on error
  * (doesn't return anything in the child process)
  */