diff options
author | Adam Russell <arussell@cs.uml.edu> | 2009-07-15 01:27:26 -0400 |
---|---|---|
committer | David Mitchell <davem@iabyn.com> | 2009-07-16 11:12:11 +0100 |
commit | d3efbeccdcea7807c492b29200470dc3a1ca7f4d (patch) | |
tree | c511e66c0e7d4b5d11c0a66fe4ee0466d58f3742 | |
parent | b6d6132c1554383190492215dd1da143d1d564ef (diff) | |
download | perl-d3efbeccdcea7807c492b29200470dc3a1ca7f4d.tar.gz |
patch submisson(symbian/symbian_utils.cpp)
This patch adds some compatibility for older Symbian
SDKs.
>From 146c431f9030e275fcf9aca35d79a72eece128c2 Mon Sep 17 00:00:00 2001
From: Osvaldo Villalon <ovillalon@dextratech.com>
Date: Fri, 3 Jul 2009 01:26:33 -0400
Subject: [PATCH 1690/1692] Osvaldo Villalon's changes to symbian_utils.cpp.
-rw-r--r-- | symbian/symbian_utils.cpp | 32 |
1 files changed, 21 insertions, 11 deletions
diff --git a/symbian/symbian_utils.cpp b/symbian/symbian_utils.cpp index d4448fed3b..9749361ed0 100644 --- a/symbian/symbian_utils.cpp +++ b/symbian/symbian_utils.cpp @@ -199,13 +199,18 @@ extern "C" { TUint tick = User::TickCount(); if (PL_timesbase.tms_utime == 0) { PL_timesbase.tms_utime = tick; - //PL_clocktick = PERL_SYMBIAN_CLK_TCK; + PL_clocktick = PERL_SYMBIAN_CLK_TCK; } tick -= PL_timesbase.tms_utime; TInt64 tickus = TInt64(tick) * TInt64(periodus); TInt64 tmps = tickus / 1000000; +#ifdef __SERIES60_3X__ if (sec) *sec = I64LOW(tmps); if (usec) *usec = I64LOW(tickus) - I64LOW(tmps) * 1000000; +#else + if (sec) *sec = tmps.Low(); + if (usec) *usec = tickus.Low() - tmps.Low() * 1000000; +#endif //__SERIES60_3X__ return 0; } EXPORT_C int symbian_usleep(unsigned int usec) @@ -288,16 +293,21 @@ extern "C" { if (error == KErrNone) { TThreadFunction func = (TThreadFunction)(lib.Lookup(1)); if (func) - error = proc.Create(aFilename, - func, - KStackSize, - // (TAny*)command, - // &lib, - // RThread().Heap(), - KHeapMin, - KHeapMax, - (TAny*)command, - EOwnerProcess); + error = proc.Create(aFilename, + func, + KStackSize, +#ifdef __SERIES60_3X__ + KHeapMin, + KHeapMax, + (TAny*)command, +#else + (TAny*)command, + &lib, + RThread().Heap(), + KHeapMin, + KHeapMax, +#endif + EOwnerProcess); else error = KErrNotFound; lib.Close(); |