File:  [DVB] / dietlibc / lib / tss_delete.c
Revision 1.1: download - view: text, annotated - select for diffs
Thu Mar 20 12:08:11 2014 UTC (10 years, 2 months ago) by leitner
Branches: MAIN
CVS tags: HEAD
a) make sure the stack gets marked as non-executable
b) add tss functions from threads.h

#include <threads.h>

extern thread_local tss_t tss_dtor_list;

void tss_delete(tss_t tss_id) {
  tss_t* cur;
  for (cur=&tss_dtor_list; *cur; cur=&((*cur)->next)) {
    if (*cur==tss_id)
      *cur=tss_id->next;
  }
  tss_id->dtor=0;
  tss_id->data=0;
  tss_id->next=0;
}

LinuxTV legacy CVS <linuxtv.org/cvs>