added SemaphoreHeap

This commit is contained in:
hyunghwan.chung
2016-03-16 02:27:18 +00:00
parent b3b9af86fd
commit fabc9afee8
8 changed files with 274 additions and 84 deletions

View File

@ -129,6 +129,20 @@ void stix_fini (stix_t* stix)
{
stix_cb_t* cb;
if (stix->sem_list)
{
stix_freemem (stix, stix->sem_list);
stix->sem_list_capa = 0;
stix->sem_list_count = 0;
}
if (stix->sem_heap)
{
stix_freemem (stix, stix->sem_heap);
stix->sem_heap_capa = 0;
stix->sem_heap_count = 0;
}
for (cb = stix->cblist; cb; cb = cb->next)
{
if (cb->fini) cb->fini (stix);