diff options
author | Benny Prijono <bennylp@teluu.com> | 2009-08-05 10:58:02 +0000 |
---|---|---|
committer | Benny Prijono <bennylp@teluu.com> | 2009-08-05 10:58:02 +0000 |
commit | 1f6819c37e9542a7995bc60415c052ba9c7e0c28 (patch) | |
tree | c96ad796f03a363813b64af29ee0d9091e139e14 /pjlib/src/pj/os_core_win32.c | |
parent | 78b3a41d1e054c7cd2f29ff66b3aef258ab87010 (diff) |
Ticket #931: Logging function may infinitely recursively calls itself on Windows Mobile (thanks Emil Sturniolo for the report)
- Added feature to temporarily suspend the logging facility while we're in the pj_log() function. The suspension will be thread specific if the platform supports it.
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@2853 74dad513-b988-da41-8d7b-12977e46ad98
Diffstat (limited to 'pjlib/src/pj/os_core_win32.c')
-rw-r--r-- | pjlib/src/pj/os_core_win32.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/pjlib/src/pj/os_core_win32.c b/pjlib/src/pj/os_core_win32.c index eac2c502..94e0da4c 100644 --- a/pjlib/src/pj/os_core_win32.c +++ b/pjlib/src/pj/os_core_win32.c @@ -152,6 +152,9 @@ PJ_DEF(pj_status_t) pj_init(void) return rc; } + /* Init logging */ + pj_log_init(); + /* Init random seed. */ /* Or probably not. Let application in charge of this */ /* pj_srand( GetCurrentProcessId() ); */ |