[Ace-users] [ace-users] Task name in VxWorks
Johnny Willemsen
jwillemsen at remedy.nl
Mon Oct 8 01:05:06 CDT 2007
Hi,
Please use the full PRF form, we lack too much information.
Regards,
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 ***
> -----Original Message-----
> From: Kordonsky Alex [mailto:alex_k at elbit.co.il]
> Sent: Monday, October 08, 2007 8:02 AM
> To: Johnny Willemsen; ace-users at cs.wustl.edu
> Subject: RE: [ace-users] Task name in VxWorks
>
>
>
> 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
> www.theaceorb.nl
>
> Regards,
>
> Johnny Willemsen
> Remedy IT
> Postbus 101
> 2650 AC Berkel en Rodenrijs
> The Netherlands
> www.theaceorb.nl / www.remedy.nl
>
>
>
> Thanks for you answer.
> We are using ACE 5.5 .
> VxWorks 5.5 / Tornado 2.2.1
>
>
>
>
>
> ________________________________
>
> 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
>
>
>
>
>
> Hello!
>
> How I can define task ( thread ) name during creation in
> VxWorks?
>
> I succeded to give task name using ACE_thread_t argument in
> spawn
> function.
>
> 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
>
> #endif
>
> ) ;
>
>
> In this way thread_name and p_thread_name is unused variables in
> Windows XP.
>
> May be somebody can advise portable solution?
>
> Thanks.
>
>
>
>
> 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
> prohibited,
> and you are requested to delete the e-mail and any attachments
>
>
> This e-mail message has been sent by Elbit Systems Ltd.
> and is for the use of the intended recipients only.
> 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 prohibited,
> and you are requested to delete the e-mail and any attachments
> and notify the sender immediately.
>
More information about the Ace-users
mailing list