Skip to content

Commit 7784856

Browse files
committed
CHRON-21 Support systems with a higher range of thread ids.
1 parent 8bf6735 commit 7784856

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎affinity/src/main/java/net/openhft/affinity/impl/OSXJNAAffinity.java‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,8 +60,8 @@ public int getProcessId() {
6060
@Override
6161
public int getThreadId() {
6262
int tid = CLibrary.INSTANCE.pthread_self();
63-
//The tid must be an unsigned 16 bit
64-
int tid_24 = tid & 0xFFFF;
63+
//The tid assumed to be an unsigned 24 bit, see net.openhft.lang.Jvm.getMaxPid()
64+
int tid_24 = tid & 0xFFFFFF;
6565
return tid_24;
6666
}
6767

0 commit comments

Comments
 (0)