@@ -124,7 +124,7 @@ int nxmutex_destroy(FAR mutex_t *mutex);
124
124
* Name: nxmutex_is_hold
125
125
*
126
126
* Description:
127
- * This function check whether the caller hold the mutex
127
+ * This function check whether the calling thread hold the mutex
128
128
* referenced by 'mutex'.
129
129
*
130
130
* Parameters:
@@ -141,6 +141,8 @@ bool nxmutex_is_hold(FAR mutex_t *mutex);
141
141
*
142
142
* Description:
143
143
* This function get the holder of the mutex referenced by 'mutex'.
144
+ * Note that this is inherently racy unless the calling thread is
145
+ * holding the mutex.
144
146
*
145
147
* Parameters:
146
148
* mutex - mutex descriptor.
@@ -156,6 +158,8 @@ int nxmutex_get_holder(FAR mutex_t *mutex);
156
158
*
157
159
* Description:
158
160
* This function get the lock state the mutex referenced by 'mutex'.
161
+ * Note that this is inherently racy unless the calling thread is
162
+ * holding the mutex.
159
163
*
160
164
* Parameters:
161
165
* mutex - mutex descriptor.
@@ -444,7 +448,7 @@ int nxrmutex_destroy(FAR rmutex_t *rmutex);
444
448
* Name: nxrmutex_is_hold
445
449
*
446
450
* Description:
447
- * This function check whether the caller hold the recursive mutex
451
+ * This function check whether the calling thread hold the recursive mutex
448
452
* referenced by 'rmutex'.
449
453
*
450
454
* Parameters:
@@ -460,7 +464,11 @@ bool nxrmutex_is_hold(FAR rmutex_t *rmutex);
460
464
* Name: nxrmutex_is_recursive
461
465
*
462
466
* Description:
463
- * This function check whether the recursive mutex is recursive
467
+ * This function check whether the recursive mutex is currently held
468
+ * recursively. That is, whether it's locked more than once by the
469
+ * current holder.
470
+ * Note that this is inherently racy unless the calling thread is
471
+ * holding the mutex.
464
472
*
465
473
* Parameters:
466
474
* rmutex - Recursive mutex descriptor.
@@ -477,6 +485,8 @@ bool nxrmutex_is_recursive(FAR rmutex_t *rmutex);
477
485
*
478
486
* Description:
479
487
* This function get the holder of the mutex referenced by 'mutex'.
488
+ * Note that this is inherently racy unless the calling thread is
489
+ * holding the mutex.
480
490
*
481
491
* Parameters:
482
492
* rmutex - Rmutex descriptor.
@@ -493,6 +503,8 @@ int nxrmutex_get_holder(FAR rmutex_t *rmutex);
493
503
* Description:
494
504
* This function get the lock state the recursive mutex
495
505
* referenced by 'rmutex'.
506
+ * Note that this is inherently racy unless the calling thread is
507
+ * holding the mutex.
496
508
*
497
509
* Parameters:
498
510
* rmutex - Recursive mutex descriptor.
0 commit comments