C++Talk.NET Forum Index C++Talk.NET
C++ language newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Never terminated thread - Symbian Seriese 60

 
Post new topic   Reply to topic    C++Talk.NET Forum Index -> C++ language (comp.lang.c++)
View previous topic :: View next topic  
Author Message
haggai.shachar@gmail.com
Guest





PostPosted: Sun Dec 19, 2004 9:23 pm    Post subject: Never terminated thread - Symbian Seriese 60 Reply with quote



Hello,

C++ over Symbian OS Seriese 60 (or any other OS) -
Is there a way to create a thread that is never terminated?
Suppose I want to create a Bluetooth listener / service that doesn't
terminate as the application is closed.

Does it depend on the handset ?
if so which handsets support that ?

Thnaks,
Haggai

Back to top
GianGuz
Guest





PostPosted: Sun Dec 19, 2004 10:33 pm    Post subject: Re: Never terminated thread - Symbian Seriese 60 Reply with quote



[email]haggai.shachar (AT) gmail (DOT) com[/email] wrote:
Quote:
Hello,

C++ over Symbian OS Seriese 60 (or any other OS) -
Is there a way to create a thread that is never terminated?
Suppose I want to create a Bluetooth listener / service that doesn't
terminate as the application is closed.

Does it depend on the handset ?
if so which handsets support that ?

Thnaks,
Haggai

Thread's lifetime is linked to its process.
If, at the application exit, you exit from any process
attached to your application the OS will also kill every thread.
If you need a service that is alive independently by your
main application you probably have to create a
daemon process (with its own threads if you need them)
that runs in background.

Gianguglielmo


Back to top
Jonathan Mcdougall
Guest





PostPosted: Sun Dec 19, 2004 10:46 pm    Post subject: Re: Never terminated thread - Symbian Seriese 60 Reply with quote



[email]haggai.shachar (AT) gmail (DOT) com[/email] wrote:
Quote:
Hello,

C++ over Symbian OS Seriese 60 (or any other OS) -
Is there a way to create a thread that is never terminated?
Suppose I want to create a Bluetooth listener / service that doesn't
terminate as the application is closed.

Does it depend on the handset ?
if so which handsets support that ?

http://www.parashift.com/c++-faq-lite/how-to-post.html#faq-5.9


Jonathan

Back to top
Jack Klein
Guest





PostPosted: Mon Dec 20, 2004 4:09 am    Post subject: Re: Never terminated thread - Symbian Seriese 60 Reply with quote

On 19 Dec 2004 14:33:49 -0800, "GianGuz" <gianguglielmo.calvi (AT) noze (DOT) it>
wrote in comp.lang.c++:

Quote:
haggai.shachar (AT) gmail (DOT) com wrote:
Hello,

C++ over Symbian OS Seriese 60 (or any other OS) -
Is there a way to create a thread that is never terminated?
Suppose I want to create a Bluetooth listener / service that doesn't
terminate as the application is closed.

Does it depend on the handset ?
if so which handsets support that ?

Thnaks,
Haggai

Thread's lifetime is linked to its process.
If, at the application exit, you exit from any process
attached to your application the OS will also kill every thread.
If you need a service that is alive independently by your
main application you probably have to create a
daemon process (with its own threads if you need them)
that runs in background.

Please cite a reference to any part of the ISO C++ standard that
defines even one of these terms: 'process', 'thread', 'service',
'daemon', 'background'.

If you can't, and I know you can't, kindly stop posting off-topic
answers to off-topic questions in comp.lang.c++.

--
Jack Klein
Home: http://JK-Technology.Com
FAQs for
comp.lang.c http://www.eskimo.com/~scs/C-faq/top.html
comp.lang.c++ http://www.parashift.com/c++-faq-lite/
alt.comp.lang.learn.c-c++
http://www.contrib.andrew.cmu.edu/~ajo/docs/FAQ-acllc.html

Back to top
Display posts from previous:   
Post new topic   Reply to topic    C++Talk.NET Forum Index -> C++ language (comp.lang.c++) All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.