Ignore:
Timestamp:
Nov 21, 2006 12:39:31 PM (18 years ago)
Author:
bennylp
Message:

Fixed handles leak upon program exit, by introducing pj_shutdown() and pj_atexit(). Also fixed handle leaks in SIP transaction layer and SIP endpoint.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjlib/include/pj/types.h

    r764 r815  
    292292 * in random string generation, and to initialize operating system dependent 
    293293 * functionality (such as WSAStartup() in Windows). 
     294 * 
     295 * @return PJ_SUCCESS on success. 
    294296 */ 
    295297PJ_DECL(pj_status_t) pj_init(void); 
     298 
     299 
     300/** 
     301 * Shutdown PJLIB. 
     302 */ 
     303PJ_DECL(void) pj_shutdown(void); 
     304 
     305/** 
     306 * Register cleanup function to be called by PJLIB when pj_shutdown() is  
     307 * called. 
     308 * 
     309 * @param func      The function to be registered. 
     310 * 
     311 * @return PJ_SUCCESS on success. 
     312 */ 
     313PJ_DECL(pj_status_t) pj_atexit(void (*func)(void)); 
     314 
     315 
    296316 
    297317/** 
Note: See TracChangeset for help on using the changeset viewer.