diff options
author | Benny Prijono <bennylp@teluu.com> | 2007-05-03 19:56:21 +0000 |
---|---|---|
committer | Benny Prijono <bennylp@teluu.com> | 2007-05-03 19:56:21 +0000 |
commit | 0a2d5c3cd9d32c77fcf23976736324ebb0565d44 (patch) | |
tree | bebc99d373b81095046eda50cc6383040beb8835 /pjsip/src/pjsua-lib/pjsua_core.c | |
parent | abb1aee315f44c03cc3da3627a93651cdd9ca15e (diff) |
Misc Symbian fixes, looks good
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@1248 74dad513-b988-da41-8d7b-12977e46ad98
Diffstat (limited to 'pjsip/src/pjsua-lib/pjsua_core.c')
-rw-r--r-- | pjsip/src/pjsua-lib/pjsua_core.c | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/pjsip/src/pjsua-lib/pjsua_core.c b/pjsip/src/pjsua-lib/pjsua_core.c index 34691531..162d2da9 100644 --- a/pjsip/src/pjsua-lib/pjsua_core.c +++ b/pjsip/src/pjsua-lib/pjsua_core.c @@ -646,6 +646,10 @@ on_error: static void busy_sleep(unsigned msec) { #if defined(PJ_SYMBIAN) && PJ_SYMBIAN != 0 + /* Ideally we shouldn't call pj_thread_sleep() and rather + * CActiveScheduler::WaitForAnyRequest() here, but that will + * drag in Symbian header and it doesn't look pretty. + */ pj_thread_sleep(msec); #else pj_time_val timeout, now; @@ -975,6 +979,15 @@ PJ_DEF(pj_status_t) pjsua_start(void) */ PJ_DEF(int) pjsua_handle_events(unsigned msec_timeout) { +#if defined(PJ_SYMBIAN) && PJ_SYMBIAN != 0 + /* Ideally we shouldn't call pj_thread_sleep() and rather + * CActiveScheduler::WaitForAnyRequest() here, but that will + * drag in Symbian header and it doesn't look pretty. + */ + pj_thread_sleep(msec_timeout); + return msec_timeout; +#else + unsigned count = 0; pj_time_val tv; pj_status_t status; @@ -989,6 +1002,7 @@ PJ_DEF(int) pjsua_handle_events(unsigned msec_timeout) return -status; return count; +#endif } |