Hi
Please check this user guide It is for Drive platform but similar on Jetson platforms. Generally we create consumer first and then producer. And consumer can be alive to wait for producers. It is same as this demo:
Problems getting EGL Stream transferred to another process on same machine - #7 by DaneLLL
Please check if you can adapt to this standard way.