sched/pthread: add missing FAR and fix alignment issues
Signed-off-by: Petro Karashchenko <petro.karashchenko@gmail.com>
This commit is contained in:
parent
0370aa9988
commit
a0b19226a1
@ -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,
|
||||
|
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user