Changeset 1242 for pjproject/trunk/pjlib/src/pj/os_core_symbian.cpp
- Timestamp:
- May 2, 2007 11:29:37 AM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjlib/src/pj/os_core_symbian.cpp
r1235 r1242 271 271 PJ_DEF(pj_status_t) pj_init(void) 272 272 { 273 pj_status_t status; 274 273 275 pj_ansi_strcpy(main_thread.obj_name, "pjthread"); 274 276 … … 281 283 PJ_LOG(4,(THIS_FILE, "Initializing PJLIB for Symbian OS..")); 282 284 283 TInt err; 285 TInt err; 284 286 err = os->Initialize(); 285 287 if (err != KErrNone) 286 288 goto on_error; 289 290 /* Initialize exception ID for the pool. 291 * Must do so after critical section is configured. 292 */ 293 status = pj_exception_id_alloc("PJLIB/No memory", &PJ_NO_MEMORY_EXCEPTION); 294 if (status != PJ_SUCCESS) 295 return status; 287 296 288 297 PJ_LOG(5,(THIS_FILE, "PJLIB initialized.")); … … 308 317 PJ_DEF(void) pj_shutdown(void) 309 318 { 310 unsigned i;311 312 319 /* Call atexit() functions */ 313 for (i=atexit_count-1; i>=0; --i) {314 (*atexit_func[ i])();315 } 316 atexit_count = 0;320 while (atexit_count > 0) { 321 (*atexit_func[atexit_count-1])(); 322 --atexit_count; 323 } 317 324 318 325 /* Free exception ID */
Note: See TracChangeset
for help on using the changeset viewer.