RTEMS
pspindestroy.c
Go to the documentation of this file.
1 
8 /*
9  * COPYRIGHT (c) 1989-2007.
10  * On-Line Applications Research Corporation (OAR).
11  *
12  * Copyright (c) 2016 embedded brains GmbH
13  *
14  * The license and distribution terms for this file may be
15  * found in the file LICENSE in this distribution or at
16  * http://www.rtems.org/license/LICENSE.
17  */
18 
19 #ifdef HAVE_CONFIG_H
20 #include "config.h"
21 #endif
22 
24 
25 int pthread_spin_destroy( pthread_spinlock_t *spinlock )
26 {
27 #if defined(RTEMS_SMP)
28  POSIX_Spinlock_Control *the_spinlock;
29 
30  the_spinlock = _POSIX_Spinlock_Get( spinlock );
31  _SMP_ticket_lock_Destroy( &the_spinlock->Lock );
32 #endif
33  return 0;
34 }
Inlined Routines from the POSIX Spinlock Manager.
static void _SMP_ticket_lock_Destroy(SMP_ticket_lock_Control *lock)
Destroys the SMP ticket lock.
Definition: smplockticket.h:76