This is an automated email from the ASF dual-hosted git repository.

pnoltes pushed a commit to branch feature/scheduled_event_on_event_thread
in repository https://gitbox.apache.org/repos/asf/celix.git

commit 9ec9f0841c0e716f66d0eb17952f27fa01e476bf
Author: Pepijn Noltes <[email protected]>
AuthorDate: Sat Jun 17 15:38:18 2023 +0200

    Rename argument to conform to camelCase style
---
 libs/utils/include/celix_threads.h | 10 +++++-----
 libs/utils/src/celix_threads.c     | 10 +++++-----
 2 files changed, 10 insertions(+), 10 deletions(-)

diff --git a/libs/utils/include/celix_threads.h 
b/libs/utils/include/celix_threads.h
index 5f63c661..5eb1b584 100644
--- a/libs/utils/include/celix_threads.h
+++ b/libs/utils/include/celix_threads.h
@@ -177,21 +177,21 @@ CELIX_UTILS_EXPORT struct timespec 
celixThreadCondition_getDelayedTime(double de
  * 
  * @section Errors
  * - CELIX_SUCCESS if the condition is signaled before the delayInSeconds is 
reached.
- * - CELIX_ILLEGAL_ARGUMENT if the abstime is negative.
+ * - CELIX_ILLEGAL_ARGUMENT if the absTime is negative.
  * - ENOTRECOVERABLE if the state protected by the mutex is not recoverable.
- * - ETIMEDOUT If the abstime has passed.
+ * - ETIMEDOUT If the absTime has passed.
  *
- *  Values for abstime should be obtained by celixThreadCondition_getTime, 
celixThreadCondition_getDelayedTime or
+ *  Values for absTime should be obtained by celixThreadCondition_getTime, 
celixThreadCondition_getDelayedTime or
  *  a modified timespec based on 
celixThreadCondition_getTime/celixThreadCondition_getDelayedTime.
  * 
  * @param[in] cond The condition to wait for.
  * @param[in] mutex The (locked) mutex to use.
- * @param[in] abstime The absolute time to wait for the condition to be 
signaled.
+ * @param[in] absTime The absolute time to wait for the condition to be 
signaled.
  * @return CELIX_SUCCESS if the condition is signaled before the 
delayInSeconds is reached.
  */
 CELIX_UTILS_EXPORT celix_status_t 
celixThreadCondition_waitUntil(celix_thread_cond_t* cond, 
                                                                  
celix_thread_mutex_t* mutex, 
-                                                                 const struct 
timespec* abstime);
+                                                                 const struct 
timespec* absTime);
 
 CELIX_UTILS_EXPORT celix_status_t 
celixThreadCondition_broadcast(celix_thread_cond_t *cond);
 
diff --git a/libs/utils/src/celix_threads.c b/libs/utils/src/celix_threads.c
index 407d674a..3916a5b8 100644
--- a/libs/utils/src/celix_threads.c
+++ b/libs/utils/src/celix_threads.c
@@ -195,8 +195,8 @@ CELIX_UTILS_EXPORT celix_status_t 
celixThreadCondition_waitFor(celix_thread_cond
         return CELIX_ILLEGAL_ARGUMENT;
     }
     struct timespec now = celix_gettime(CLOCK_MONOTONIC);
-    struct timespec abstime = celix_delayedTimespec(&now, delayInSeconds);
-    return celixThreadCondition_waitUntil(cond, mutex, &abstime);
+    struct timespec absTime = celix_delayedTimespec(&now, delayInSeconds);
+    return celixThreadCondition_waitUntil(cond, mutex, &absTime);
 }
 
 struct timespec celixThreadCondition_getTime() {
@@ -220,11 +220,11 @@ struct timespec 
celixThreadCondition_getDelayedTime(double delayInSeconds) {
 
 CELIX_UTILS_EXPORT celix_status_t 
celixThreadCondition_waitUntil(celix_thread_cond_t* cond, 
                                                                  
celix_thread_mutex_t* mutex, 
-                                                                 const struct 
timespec* abstime) {
-    if (abstime == NULL || abstime->tv_sec < 0 || abstime->tv_nsec < 0) {
+                                                                 const struct 
timespec* absTime) {
+    if (absTime == NULL || absTime->tv_sec < 0 || absTime->tv_nsec < 0) {
         return CELIX_ILLEGAL_ARGUMENT;
     }
-    return pthread_cond_timedwait(cond, mutex, abstime);
+    return pthread_cond_timedwait(cond, mutex, absTime);
 }
 
 celix_status_t celixThreadCondition_broadcast(celix_thread_cond_t *cond) {

Reply via email to