Why the session of RTimer can't be shared among threads.

Login to reply to this topic.
Fri, 2007-08-24 04:24
Joined: 2006-07-26
Forum posts: 27

Hi experts,

When I use RTimer class, I noticed that there's only one initilize functions called CreateLocal()--
(Creates a thread-relative timer). Meaning that the session of RTimer can't be shared among threads.

I'm wondering why Symbian still do this? As we know, the session can be share among threads from
Symbian 7.0 and even can be shared among processes from Symbian 8.0.

Why session of RTimer can't be shared??? Thank you in advance.

Regards,
Jimmy


Taking you forward.


Fri, 2007-08-24 09:53
Joined: 2004-11-29
Forum posts: 1134
Re: Why the session of RTimer can't be shared among threads.

Hmm.. Why would you want to?
I don't really see the point of shareing timers, since they don't contain any information that would be useful for any other thread.

Fri, 2007-08-24 10:32
Forum Nokia Champion
Joined: 2003-10-01
Forum posts: 721
Re: Why the session of RTimer can't be shared among threads.

Have you already had a look at RTimer's (and eventually RHandleBase's) Duplicate() method? Having read the documentation (but without making any experiments) I think a timer object can be used in multiple threads. And eventually any objects derived from RHandleBase.

Tote


Gabor Torok
Software architect, Agil Eight (http://www.agileight.com/)
Blog: http://mobile-thoughts.blogspot.com/

  • Login to reply to this topic.