[Ace-users] [ace-users] Task name in VxWorks

Johnny Willemsen jwillemsen at remedy.nl
Sun Oct 7 13:09:12 CDT 2007

To ensure that we have proper version/platform/compiler information,
please make sure you fill out the appropriate problem report form
(PRF), which is in


or in


in older versions of ACE+TAO.  Make sure to include this information
when asking any questions about ACE+TAO since otherwise we have to
"guess" what version/platform/compiler/options you've using, which is
very error-prone and slows down our responsiveness.  If you don't use
the PRF, therefore, it is less likely that someone from the core
ACE+TAO developer team will be able to answer your question.
Naturally, we encourage and appreciate other members of the ACE+TAO
user community who can respond to questions that they have the answers
We need to know more about VxWorks version, which mode, etc, etc. Note that
we as Remedy IT do actively port to VxWorks and maintain it, we only deliver
VxWorks support as part of our commercial services as described on


Johnny Willemsen
Remedy IT
Postbus 101
2650 AC  Berkel en Rodenrijs
The Netherlands
www.theaceorb.nl / www.remedy.nl  

*** Integrated compile and test statistics see
http://scoreboard.theaceorb.nl ***
*** Commercial service and support for ACE/TAO/CIAO             ***
*** See http://www.theaceorb.nl/en/support.html                 ***



	From: ace-users-bounces at cse.wustl.edu
[mailto:ace-users-bounces at cse.wustl.edu] On Behalf Of Kordonsky Alex
	Sent: Sunday, October 07, 2007 9:13 AM
	To: ace-users at cs.wustl.edu
	Subject: [ace-users] Task name in VxWorks


	How I can define task ( thread ) name during creation in VxWorks?

	I succeded to give task name using ACE_thread_t argument in spawn

	But my code runs on VxWorks and Windows XP and I didn't find cross
platform way ( without using #ifdef VXWORKS )

	To solve this problem.

	My solution :

	std::string thread_name("My Thread") ;

	char*  p_thread_name = (char*)thread_name.c_str() ;

	ACE_Thread_Manager::instance()->spawn ( 

	                ACE_THR_FUNC( server) ,

	                       reinterpret_cast<void*>(thread_arg) ,

	                       THR_NEW_LWP | THR_DEAMON 

	#ifdef VXWORKS

	                | VX_FP_TASK , &p_thread_name


	                ) ;

	In this way thread_name and p_thread_name is unused variables in
Windows XP.

	May be somebody can advise portable solution?


	Alexander Kordonsky

	Senior Software Engineer

	Elbit System Group

	e-mail : alex_k at elbit.co.il

	tel      : 972-4-831-62-29

	mobile: 972-54-999-62-29

	The message may contain privileged or commercially sensitive
information .
	If you are not the intended recipient you are hereby notified that
any use,
	distribution or copying of this communication is strictly
	and you are requested to delete the e-mail and any attachments

More information about the Ace-users mailing list