You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by hg...@apache.org on 2004/12/07 11:54:11 UTC
cvs commit: jakarta-tomcat-connectors/jk/native/common jk_util.c
hgomez 2004/12/07 02:54:11
Modified: jk/native/common jk_util.c
Log:
Adapt to iSeries 64 bits ThreadId
Revision Changes Path
1.44 +8 -1 jakarta-tomcat-connectors/jk/native/common/jk_util.c
Index: jk_util.c
===================================================================
RCS file: /home/cvs/jakarta-tomcat-connectors/jk/native/common/jk_util.c,v
retrieving revision 1.43
retrieving revision 1.44
diff -u -r1.43 -r1.44
--- jk_util.c 30 Nov 2004 13:11:21 -0000 1.43
+++ jk_util.c 7 Dec 2004 10:54:10 -0000 1.44
@@ -1021,7 +1021,14 @@
{
pthread_t t = pthread_self();
+#ifdef AS400
+ /* OS400 use 64 bits ThreadId, get only low 32 bits for now */
+ pthread_id_np_t tid;
+ pthread_getunique_np(&t, &tid);
+ return ((int)(tid.intId.lo & 0xFFFFFFFF));
+#else
return (int)(t & 0xFFFF);
+#endif /* AS400 */
}
#endif
---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-dev-help@jakarta.apache.org