About thread

Login to reply to this topic.
Wed, 2003-09-24 16:16
Joined: 2003-09-11
Forum posts: 3
Hello!

In symbian, what is the similar function to yield() or sleep(0) in unix or windows, which can switch the CPU execution from current thread to another threads.

thanks!

Wed, 2003-09-24 16:44
Joined: 2003-05-27
Forum posts: 363
About thread
Hi,

User::WaitForAnyRequest may be what you are looking for.

Regards,
Pawel
Thu, 2003-09-25 17:35
Joined: 2003-09-11
Forum posts: 3
thanks
But WaitForAnyRequest() will suspend the thread. I just want to switch the CPU execution.
Thu, 2003-09-25 17:39
Joined: 2003-05-27
Forum posts: 363
About thread
Erm... you want to switch execution without suspending the current thread? How do you want to do that?

Do you mean you want to let the main system scheduler schedule other tasks and then come back? If you need this to implement a low-priority, background process, you can do this in Symbian using the CIdle object. The programming paradigm is different from unix.

Cheers,
Pawel
Fri, 2006-06-09 14:20
Joined: 2006-03-20
Forum posts: 24
Re: About thread
I'm developing an application that contains an active object... I assigned a high priority to this active object... my problem is that when my application goes into background... It appears as if the priority of my active object decreases... How can I handle this problem?

Making a living is not the same thing as making a life

  • Login to reply to this topic.