simplePing works with multiple threads, how to know which instance unexpected packet is from?

Multiple background threads are using SimplePing at the same time and setting the TTL. When a unexpected packet is received, how to know which instance it belongs to