This gets a unique wire ID. We add a random identifier so that if the worker has other clients that it is servicing, we don't have any collision.
| 326 | // This gets a unique wire ID. We add a random identifier so that if the |
| 327 | // worker has other clients that it is servicing, we don't have any collision. |
| 328 | std::string XrtGetUniqueWireID() { |
| 329 | static uint64 random_seed = random::New64(); |
| 330 | static std::atomic<int64> wireid(0); |
| 331 | return absl::StrCat(random_seed, "_", ++wireid); |
| 332 | } |
| 333 | |
| 334 | static std::string GetReceiverDevice(XrtTfContext* context, |
| 335 | int recv_device_id) { |
no test coverage detected