Introduce a generic shared buffer with typed span access and timeout-based read/write waits. Update the sample to verify data shared between two buffer views.