mirror of
https://github.com/apache/nuttx.git
synced 2026-05-26 18:56:10 +08:00
sched/: Remove dangling space at the end of lines.
This commit is contained in:
@@ -179,7 +179,7 @@ int pthread_mutex_trylock(FAR pthread_mutex_t *mutex)
|
|||||||
DEBUGASSERT(mutex->pid != 0); /* < 0: available, >0 owned, ==0 error */
|
DEBUGASSERT(mutex->pid != 0); /* < 0: available, >0 owned, ==0 error */
|
||||||
DEBUGASSERT((mutex->flags & _PTHREAD_MFLAGS_INCONSISTENT) != 0);
|
DEBUGASSERT((mutex->flags & _PTHREAD_MFLAGS_INCONSISTENT) != 0);
|
||||||
|
|
||||||
/* A thread holds the mutex, but there is no such thread.
|
/* A thread holds the mutex, but there is no such thread.
|
||||||
* POSIX requires that the 'robust' mutex return EOWNERDEAD
|
* POSIX requires that the 'robust' mutex return EOWNERDEAD
|
||||||
* in this case. It is then the caller's responsibility to
|
* in this case. It is then the caller's responsibility to
|
||||||
* call pthread_mutx_consistent() fo fix the mutex.
|
* call pthread_mutx_consistent() fo fix the mutex.
|
||||||
|
|||||||
@@ -159,5 +159,5 @@ errout_with_csection:
|
|||||||
errout_with_lock:
|
errout_with_lock:
|
||||||
sched_unlock();
|
sched_unlock();
|
||||||
set_errno(errcode);
|
set_errno(errcode);
|
||||||
return ERROR;
|
return ERROR;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -154,7 +154,7 @@ static void lpwork_boostworker(pid_t wpid, uint8_t reqprio)
|
|||||||
|
|
||||||
if (reqprio > wtcb->sched_priority)
|
if (reqprio > wtcb->sched_priority)
|
||||||
{
|
{
|
||||||
/* Raise the priority of the worker thread. This cannot cause
|
/* Raise the priority of the worker thread. This cannot cause
|
||||||
* context switch because we have preemption disabled. The task
|
* context switch because we have preemption disabled. The task
|
||||||
* will be marked "pending" and the switch will occur during
|
* will be marked "pending" and the switch will occur during
|
||||||
* sched_unlock() processing.
|
* sched_unlock() processing.
|
||||||
|
|||||||
Reference in New Issue
Block a user