[Ace-users] [ace-users] Task name in VxWorks
jwillemsen at remedy.nl
Fri Oct 12 08:30:41 CDT 2007
Thanks for using the PRF form. There is not a portable way to do this. When
you use vxworks with pthread support the code below will not work. VxWorks
does have a specific API to set the task name, maybe we could add that to
the ACE thread wrappers. You must always make sure you don't get multiple
tasks with the same name!
2650 AC Berkel en Rodenrijs
www.theaceorb.nl / www.remedy.nl
*** Integrated compile and test statistics see
*** Commercial service and support for ACE/TAO/CIAO ***
*** See http://www.theaceorb.nl/en/support.html ***
"Kordonsky Alex" <alex_k at elbit.co.il> wrote in message
news:<mailman.2479.1191825254.5286.ace-users at mail.cse.wustl.edu>...
ACE VERSION: 5.5
HOST MACHINE and OPERATING SYSTEM:
WindowsXP , SP2
TARGET MACHINE and OPERATING SYSTEM,
PPC , VxWorks 5.5/ Tornado 2.2.1
COMPILER NAME AND VERSION (AND PATCHLEVEL): gcc 2.96
CONTENTS OF $ACE_ROOT/ace/config.h
CONTENTS OF $ACE_ROOT/include/makeinclude/platform_macros.GNU
this isn't used in this case, e.g., with Microsoft Visual C++):
DOES THE PROBLEM AFFECT:
OTHER (please specify)?
Task name in VxWorks
[Brief description of the problem]
How I can define task ( thread ) name during creation in
I succeded to give task name using ACE_thread_t argument in
But my code runs on VxWorks and Windows XP and I didn't find
platform way ( without using #ifdef VXWORKS ) to solve this
std::string thread_name("My Thread") ;
char* p_thread_name = (char*)thread_name.c_str() ;
ACE_THR_FUNC( server) ,
THR_NEW_LWP | THR_DEAMON
| VX_FP_TASK , &p_thread_name
In this way thread_name and p_thread_name is unused variables in
May be somebody can advise portable solution?
Senior Software Engineer
Elbit System Group
e-mail : alex_k at elbit.co.il
tel : 972-4-831-62-29
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