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
|
@ -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>
|
2018-10-25 Martin Liska <mliska@suse.cz>
|
||||||
|
|
||||||
PR other/87735
|
PR other/87735
|
||||||
|
|
|
@ -63,8 +63,9 @@ __gthread_mutex_init_function (__gthread_mutex_t *mutex)
|
||||||
}
|
}
|
||||||
|
|
||||||
static inline int
|
static inline int
|
||||||
__gthread_mutex_destroy (__gthread_mutex_t * UNUSED(mutex))
|
__gthread_mutex_destroy (__gthread_mutex_t *mutex)
|
||||||
{
|
{
|
||||||
|
semDelete(*mutex);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue