Update TODO, cosmetic changes, spelling -- US English spells it canceled and canceling vs cancelled and cancelling. No idea why.

This commit is contained in:
Gregory Nutt
2016-12-09 18:39:40 -06:00
parent 03a58b2ebc
commit a0f567f4a3
7 changed files with 38 additions and 34 deletions
+5 -1
View File
@@ -107,7 +107,11 @@ int pthread_cond_wait(FAR pthread_cond_t *cond, FAR pthread_mutex_t *mutex)
ret |= pthread_takesemaphore((FAR sem_t *)&cond->sem);
sched_unlock();
/* Reacquire the mutex */
/* Reacquire the mutex.
*
* REVISIT: When cancellation points are enabled, we will almost
* certainly hold the mutex when the pthread is canceled.
*/
sinfo("Reacquire mutex...\n");
ret |= pthread_takesemaphore((FAR sem_t *)&mutex->sem);
+2 -2
View File
@@ -75,7 +75,7 @@ int pthread_mutex_destroy(FAR pthread_mutex_t *mutex)
sinfo("mutex=0x%p\n", mutex);
if (!mutex)
if (mutex == NULL)
{
ret = EINVAL;
}
@@ -100,7 +100,7 @@ int pthread_mutex_destroy(FAR pthread_mutex_t *mutex)
ret = kill(mutex->pid, 0);
if (ret < 0)
{
/* That thread associated with the PID no longer exists */
/* The thread associated with the PID no longer exists */
mutex->pid = -1;