RTEMS CPU Kit with SuperCore  4.11.2
Functions
pspinlock.c File Reference

Wait at a Spinlock. More...

#include <pthread.h>
#include <errno.h>
#include <rtems/system.h>
#include <rtems/posix/spinlockimpl.h>
Include dependency graph for pspinlock.c:

Functions

int pthread_spin_lock (pthread_spinlock_t *spinlock)
 This directive allows a thread to wait at a spinlock. More...
 

Detailed Description

Wait at a Spinlock.

Function Documentation

◆ pthread_spin_lock()

int pthread_spin_lock ( pthread_spinlock_t *  spinlock)

This directive allows a thread to wait at a spinlock.

Parameters
[in]spinlockis spinlock id
Returns
This method returns 0 if there was not an error. Otherwise, a status code is returned indicating the source of the error.