[omniORB] omnithread inside pthread

Julien Teisseire zzteisseire at echo.fr
Fri May 13 10:21:35 BST 2005


delete was a test.

Even if I did not delete my omni_thread,
when I leave my pthread, program stops because of omni_thread memory is
released at this time.

Thank you,
Julien

Le jeudi 12 mai 2005 à 15:58 -0400, Visscher, Bruce a écrit :
>  
>  > -----Original Message-----
>  > From: omniorb-list-bounces at omniorb-support.com
>  > [mailto:omniorb-list-bounces at omniorb-support.com]On Behalf Of Julien
>  > Teisseire
>  > Sent: Thursday, May 12, 2005 11:59 AM
>  > To: OmniOrb support
>  > Subject: [omniORB] omnithread inside pthread
>  > 
>  > 
>  > Hi all,
>  > I am trying to use omni_tread inside an already created pthread.
>  > When omni_thread leave, program is simply killed.
>  > 
>  > I am trying to know if a thread can be created inside a thread ...
>  > To be more precise, the process leave when memory allocated for
>  > omni_thread is released.
>  > 
>  > See here the mechanism :
>  > 
>  > main
>  > -- pthread_create
>  > 	--- create omni_thread pointer
>  > 	--- make new on pointer for creating object and run ->start()
>  > 		--- do things inside omni_thread
>  > 		--- leave
>  > 	--- ok, omni_thread leaved
>  > 	--- leave pthread
>  > -- SIG_KILL !!
>  > NEVER return to main
>  > 
>  > I tryed to insert "delete omni_thread" before leaving pthread, and
>  > SIG_KILL came just on memory de-allocation.
>  
>  You should never delete an omnithread.  When the thread exits, it
>  will "delete this".
>  
>  Other than that, I don't know of any reason why you cannot create an
>  omnithread inside a pthread.
>  
>  -----------------------------------------
>  CONFIDENTIALITY NOTE:  This e-mail message, including any  attachment(s),
>  contains information that may be confidential,  protected by the attorney-
>  client or other legal privileges, and/or  proprietary non-public
>  information.  If you are not an intended  recipient of this message or an
>  authorized assistant to an intended  recipient, please notify the sender by
>  replying to this message and  then delete it from your system.  Use,
>  dissemination, distribution,  or reproduction of this message and/or any of
>  its attachments (if  any) by unintended recipients is not authorized and
>  may be unlawful.
>  




More information about the omniORB-list mailing list