libgcc: properly destroy mutexes on VxWorks
Just as one needs run-time initialization of mutexes, one needs to destroy them properly to allow the OS to release resources associated with the semaphore. From-SVN: r265616
This commit is contained in:
parent
9eeb0b97a6
commit
be7b071e9e
2 changed files with 6 additions and 1 deletions
|
@ -1,3 +1,7 @@
|
|||
2018-10-30 Rasmus Villemoes <rv@rasmusvillemoes.dk>
|
||||
|
||||
* config/gthr-vxworks.h (__gthread_mutex_destroy): Call semDelete.
|
||||
|
||||
2018-10-25 Martin Liska <mliska@suse.cz>
|
||||
|
||||
PR other/87735
|
||||
|
|
|
@ -63,8 +63,9 @@ __gthread_mutex_init_function (__gthread_mutex_t *mutex)
|
|||
}
|
||||
|
||||
static inline int
|
||||
__gthread_mutex_destroy (__gthread_mutex_t * UNUSED(mutex))
|
||||
__gthread_mutex_destroy (__gthread_mutex_t *mutex)
|
||||
{
|
||||
semDelete(*mutex);
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue