Changeset 815 for pjproject/trunk/pjlib/src/pj/except.c
- Timestamp:
- Nov 21, 2006 12:39:31 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjlib/src/pj/except.c
r635 r815 52 52 } 53 53 54 static void exception_cleanup(void) 55 { 56 if (thread_local_id != -1) { 57 pj_thread_local_free(thread_local_id); 58 thread_local_id = -1; 59 } 60 } 61 54 62 PJ_DEF(void) pj_push_exception_handler_(struct pj_exception_state_t *rec) 55 63 { … … 59 67 pj_thread_local_alloc(&thread_local_id); 60 68 pj_assert(thread_local_id != -1); 69 pj_atexit(&exception_cleanup); 61 70 } 62 71 parent_handler = pj_thread_local_get(thread_local_id);
Note: See TracChangeset
for help on using the changeset viewer.