[omniORB] omnithread inside pthread

Julien Teisseire zzteisseire at echo.fr
Fri May 13 11:26:49 BST 2005


Hi !

I found out the problem !
Inside my pthread, I am using omni_thread, but also omni_mutex.
And omni_mutex was the cause of my program kill.

Today, I am simply using pthread_mutex ... but it works !
Julien 


Le vendredi 13 mai 2005 à 09:21 +0200, Julien Teisseire a écrit :
> 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.
> >  
> 
> 
> _______________________________________________
> omniORB-list mailing list
> omniORB-list at omniorb-support.com
> http://www.omniorb-support.com/mailman/listinfo/omniorb-list




More information about the omniORB-list mailing list