RTEMS CPU Kit with SuperCore
Functions
pspindestroy.c File Reference

Destroy a Spinlock. More...

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

Functions

int pthread_spin_destroy (pthread_spinlock_t *spinlock)
 This directive allows a thread to delete a spinlock specified by the spinlock id. More...
 

Detailed Description

Destroy a Spinlock.

Function Documentation

◆ pthread_spin_destroy()

int pthread_spin_destroy ( pthread_spinlock_t *  spinlock)

This directive allows a thread to delete a spinlock specified by the spinlock id.

The spinlock is freed back to the inactive spinlock chain.

Parameters
[in]spinlockis the 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.

References _Objects_Allocator_lock(), and _POSIX_Spinlock_Get().