Skip to content

Commit 9369b54

Browse files
committed
Compatibility tests fixes
1 parent e5c5a5d commit 9369b54

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

affinity/src/main/java/net/openhft/affinity/AffinitySupport.java

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,11 +19,14 @@
1919
import java.lang.reflect.Field;
2020

2121
/**
22-
* Created by peter on 13/07/15.
22+
* For backward compatibility with Affinity 2.x
2323
*/
2424
@Deprecated
2525
public class AffinitySupport {
2626

27+
public static int getThreadId() {
28+
return Affinity.getThreadId();
29+
}
2730
public static void setThreadId() {
2831
try {
2932
int threadId = Affinity.getThreadId();

0 commit comments

Comments
 (0)