Changeset 1651


Ignore:
Timestamp:
Jan 2, 2008 8:19:17 AM (12 years ago)
Author:
bennylp
Message:

Implement stack usage detection on Symbian OS

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjlib/src/pj/os_core_symbian.cpp

    r1642 r1651  
    314314PJ_DEF(pj_status_t) pj_init(void) 
    315315{ 
     316        char stack_ptr; 
    316317    pj_status_t status; 
    317318     
     
    337338    if (status != PJ_SUCCESS) 
    338339        goto on_error; 
     340 
     341#if defined(PJ_OS_HAS_CHECK_STACK) && PJ_OS_HAS_CHECK_STACK!=0 
     342    main_thread.stk_start = &stack_ptr; 
     343    main_thread.stk_size = 0xFFFFFFFFUL; 
     344    main_thread.stk_max_usage = 0; 
     345#else 
     346    stack_ptr = '\0'; 
     347#endif 
    339348 
    340349    PJ_LOG(5,(THIS_FILE, "PJLIB initialized.")); 
Note: See TracChangeset for help on using the changeset viewer.