diff options
author | levine <levine@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 2000-07-11 22:31:48 +0000 |
---|---|---|
committer | levine <levine@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 2000-07-11 22:31:48 +0000 |
commit | 2283ba834a2cd98433de4f5cc1875dd8ef28c441 (patch) | |
tree | 77a89307b66f9a584c842345bfdc24190120fac8 /ace/Local_Tokens.cpp | |
parent | 1eb111de38fca88a53d7dbb08c838dc1bcc8d981 (diff) | |
download | ATCD-2283ba834a2cd98433de4f5cc1875dd8ef28c441.tar.gz |
ChangeLogTag: Tue Jul 11 17:20:48 2000 David L. Levine <levine@cs.wustl.edu>
Diffstat (limited to 'ace/Local_Tokens.cpp')
-rw-r--r-- | ace/Local_Tokens.cpp | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/ace/Local_Tokens.cpp b/ace/Local_Tokens.cpp index af564c8438a..f2ff85a829f 100644 --- a/ace/Local_Tokens.cpp +++ b/ace/Local_Tokens.cpp @@ -90,11 +90,15 @@ ACE_TPQ_Entry::ACE_TPQ_Entry (const ACE_Token_Proxy *new_proxy, ACE_TCHAR name[(sizeof host_name / sizeof (ACE_TCHAR)) + 256]; ACE_OS::hostname (host_name, sizeof host_name); + ACE_thread_t thread_id = ACE_Thread::self (); + + // The cast is an attempt to get this to compile (and run, + // hopefully) regardless of the type of ACE_thread_t. ACE_OS::sprintf (name, - ACE_TEXT ("/%s/%u/%u"), + ACE_TEXT ("/%s/%u/%lu"), host_name, ACE_static_cast (u_int, ACE_OS::getpid ()), - ACE_Thread::self ()); + *ACE_reinterpret_cast (u_long *, &thread_id)); this->client_id (name); } |