sched/pthread: add missing FAR and fix alignment issues

Signed-off-by: Petro Karashchenko <petro.karashchenko@gmail.com>
This commit is contained in:
Petro Karashchenko 2023-07-07 12:06:36 +03:00 committed by Alan Carvalho de Assis
parent 0370aa9988
commit a0b19226a1
2 changed files with 14 additions and 14 deletions

View File

@ -90,9 +90,9 @@ void pthread_release(FAR struct task_group_s *group);
int pthread_sem_take(FAR sem_t *sem, FAR const struct timespec *abs_timeout);
#ifdef CONFIG_PTHREAD_MUTEX_UNSAFE
int pthread_sem_trytake(sem_t *sem);
int pthread_sem_trytake(FAR sem_t *sem);
#endif
int pthread_sem_give(sem_t *sem);
int pthread_sem_give(FAR sem_t *sem);
#ifndef CONFIG_PTHREAD_MUTEX_UNSAFE
int pthread_mutex_take(FAR struct pthread_mutex_s *mutex,

View File

@ -75,7 +75,7 @@ int pthread_sem_take(FAR sem_t *sem, FAR const struct timespec *abs_timeout)
}
#ifdef CONFIG_PTHREAD_MUTEX_UNSAFE
int pthread_sem_trytake(sem_t *sem)
int pthread_sem_trytake(FAR sem_t *sem)
{
int ret = EINVAL;
@ -94,7 +94,7 @@ int pthread_sem_trytake(sem_t *sem)
}
#endif
int pthread_sem_give(sem_t *sem)
int pthread_sem_give(FAR sem_t *sem)
{
int ret;